import { LangFamily, languageFromPath } from "./syntax/language-table.js"; import { HighlightCarry, SyntaxSpan } from "./syntax/language-highlighters.js"; export type { HighlightCarry, SyntaxKind, SyntaxSpan } from "./syntax/language-highlighters.js"; export { supportedExtensions } from "./syntax/language-table.js"; export { languageFromPath }; export type { LangFamily } from "./syntax/language-table.js"; /** @deprecated alias kept for call sites */ export type LangId = LangFamily; export declare function emptyCarry(): HighlightCarry; /** @deprecated use languageFromPath */ export declare function languageFromPathLegacy(path: string): LangId; export declare function highlightLine(line: string, langOrPath: LangFamily | string, carry?: HighlightCarry): SyntaxSpan[]; export declare function highlightLineForPath(line: string, path: string, carry?: HighlightCarry): SyntaxSpan[]; export declare function highlightLines(lines: readonly string[], langOrPath: LangFamily | string): SyntaxSpan[][]; export declare function clipSpans(spans: readonly SyntaxSpan[], maxChars: number): SyntaxSpan[];