blob: 3394eac0d927d693c96185c6974bac95a742d75a [file] [log] [blame]
import { Expression } from "typescript";
import { DocumentOffset, DocumentRange, Range, SourceFilePosition, SourceFileRange } from "../../../types/range.js";
export interface VirtualDocument {
fileName: string;
location: SourceFileRange;
text: string;
getPartsAtDocumentRange(range?: DocumentRange): (Expression | string)[];
sfPositionToDocumentOffset(position: SourceFilePosition): DocumentOffset;
documentOffsetToSFPosition(offset: DocumentOffset): SourceFilePosition;
}
export declare function textPartsToRanges(parts: (Expression | string)[]): Range[];
//# sourceMappingURL=virtual-document.d.ts.map