import type { OutlineEntry, JumpEntry } from "../parser/types.js"; import type { ObservedFile } from "./workspace-read-view.js"; import type { ProseProjectionProvider } from "./colorful-prose-projection.js"; export interface FileOutlineResult { path: string; outline: OutlineEntry[]; jumpTable: JumpEntry[]; partial?: boolean | undefined; cacheHit?: boolean | undefined; actual?: { lines: number; bytes: number; } | undefined; reason?: "UNSUPPORTED_LANGUAGE" | "INVALID_UTF8" | "UNADMITTED_PATH" | "NOT_FOUND" | undefined; error?: string | undefined; } export interface ExtractedFileOutline { readonly outline: OutlineEntry[]; readonly jumpTable: JumpEntry[]; readonly partial?: boolean | undefined; } export declare function extractOutlineProjectionForContent(filePath: string, content: string, opts: { proseProjector?: ProseProjectionProvider | undefined; }): Promise; /** * Extracts an outline from bytes already observed. * * Takes the observation rather than a filesystem so the symbols returned are * necessarily the symbols of the bytes the caller evaluated and cached. */ export declare function fileOutline(file: ObservedFile, opts?: { proseProjector?: ProseProjectionProvider | undefined; }): Promise; //# sourceMappingURL=file-outline.d.ts.map