12345678910111213141516171819202122232425262728293031323334 |
- export declare const FOLD_FLOW = "flow";
- export declare const FOLD_BLOCK = "block";
- export declare const FOLD_QUOTED = "quoted";
- export type FoldMode = 'flow' | 'block' | 'quoted';
- export interface FoldOptions {
-
- indentAtStart?: number;
-
- lineWidth?: number;
-
- minContentWidth?: number;
-
- onFold?: () => void;
-
- onOverflow?: () => void;
- }
- export declare function foldFlowLines(text: string, indent: string, mode?: FoldMode, { indentAtStart, lineWidth, minContentWidth, onFold, onOverflow }?: FoldOptions): string;
|