import type { ReactNode } from "react"; /** * Normalize a user-supplied language hint to a registered highlight.js grammar, * or `null` when empty / unknown so callers fall back to plain text. */ export declare function normalizeCodeLanguage(value?: string | null): string | null; /** Best-effort language from a filename / path extension (e.g. `auth.ts` → ts). */ export declare function inferLanguageFromFilename(filename?: string | null): string | null; /** * Syntax-highlight `code` for an already-resolved language, returning React * token nodes. Pass a single line to highlight per-line (the annotated-code use) * or a whole snippet. Falls back to the raw string for empty / plaintext / * unknown languages or any grammar error, so it is always safe to render. */ export declare function highlightCode(code: string, language?: string | null): ReactNode; //# sourceMappingURL=code-highlight.d.ts.map