import type { EditorState } from '@codemirror/state'; /** * Document range of a fold, from the end of its first line to its last line. * @internal */ export type FoldRange = { from: number; to: number; }; /** * The range a line can fold or unfold, and whether it is currently unfolded. * @internal */ export type LineFold = { isOpen: boolean; range: FoldRange; }; /** * Returns the range a line folds or unfolds, the same way CodeMirror's fold * gutter decides it: a folded range starting on the line takes precedence over * a foldable one. * @param state - The editor state. * @param line - Start and end position of the line, or of a line block that * spans a folded range. * @returns `null` if the line can neither be folded nor unfolded. * @internal */ export declare function getLineFold(state: EditorState, line: Readonly<{ from: number; to: number; }>): LineFold | null; //# sourceMappingURL=fold-ranges.d.ts.map