import { EditorState } from '@codemirror/state'; import { LineMapping } from '../types'; import { ClassificationCounts } from './diff-folding'; export interface FoldPlaceholderData { counts: ClassificationCounts; isSpacer: boolean; } /** * Compute classification counts for a specific folded range. * Called by CodeMirror's `preparePlaceholder` with the exact fold range. * Only counts lines that have real content on this editor's side * (skips spacer lines from the opposite side). */ export declare function prepareFoldPlaceholder(state: EditorState, range: { from: number; to: number; }, side: "before" | "after" | "unified", lineMap: LineMapping[]): FoldPlaceholderData; /** * Create a fold placeholder DOM element with classification counter badges. * Receives pre-computed classification counts from `prepareFoldPlaceholder`. */ export declare function createFoldPlaceholder(prepared: FoldPlaceholderData, onclick?: (event: Event) => void): HTMLElement;