export interface CodeMirrorTextSelection { from: number; to: number; startLine: number; startColumn: number; endLine: number; endColumn: number; text: string; anchorRect?: { top: number; left: number; bottom: number; right: number; }; } export interface FileSelectionContext { type: 'file-selection'; id: string; filePath: string; startLine: number; startColumn: number; endLine: number; endColumn: number; text: string; label: string; source: 'viewer'; revision?: string; } export declare function formatFileSelectionLabel(filePath: string, startLine: number, endLine: number): string; export declare function createFileSelectionContext(filePath: string, selection: CodeMirrorTextSelection): FileSelectionContext; export declare function formatFileSelectionForMessage(selection: FileSelectionContext): string; export declare function formatFileSelectionsForMessage(selections: FileSelectionContext[]): string; export interface ParsedFileSelectionTag { id: string; filePath: string; startLine: number; startColumn: number; endLine: number; endColumn: number; text: string; label: string; } export interface ParseFileSelectionsResult { fileSelections: ParsedFileSelectionTag[]; cleanContent: string; } export declare function parseFileSelections(content: string): ParseFileSelectionsResult; //# sourceMappingURL=fileSelectionContext.d.ts.map