import type { LanguageExtractor } from '../tree-sitter-types';
/**
 * Move a protocol composition's line-leading `&` onto the line before it.
 *
 *     typealias EditorClient = AutocompleteService.Client
 *       & MediaUploadService.Client
 *
 * is valid Swift, but in a type's body tree-sitter-swift ends the declaration
 * at the newline and the `&` line is an ERROR that swallows the enclosing type
 * (IceCubesApp's 980-line `EditorStore` came out as loose variables, no class).
 * With the `&` trailing the previous line it parses. Same length and line
 * count; only the continuation line's tokens sit one column left. Applied to
 * an indented `typealias`/`let`/`var` statement's `&` lines only — a
 * line-leading `&&`, `&+` or inout `&x` is never touched.
 */
export declare function joinSwiftCompositionContinuations(source: string): string;
export declare const swiftExtractor: LanguageExtractor;
//# sourceMappingURL=swift.d.ts.map