export interface BuildStubArgs { readonly content: string; readonly relPath: string; readonly previewLines: number; readonly thresholdChars: number; } /** * Hard cap on the preview's characters, whatever `previewLines` allows. Lines * bound a normal preview, but one line can be arbitrarily long (minified JSON, * a grep hit on a bundle), and the stub exists precisely to keep oversized * output out of the model context. */ export declare const STUB_PREVIEW_MAX_CHARS = 8192; export interface Preview { readonly text: string; readonly lines: number; /** True when the character cap cut the preview short. */ readonly clipped: boolean; } /** The first `previewLines` lines of `content`, capped at `maxChars` characters. */ export declare function buildPreview(content: string, previewLines: number, maxChars: number): Preview; export declare function buildStub(args: BuildStubArgs): string; //# sourceMappingURL=stub.d.ts.map