import { type ColorTokens } from "../../style/index.js"; export type TokenKind = "text" | "comment" | "string" | "keyword" | "number" | "tag" | "attr" | "fn" | "var"; export interface CodeToken { text: string; kind: TokenKind; } /** Resolve a `language` prop to a supported grammar key, or undefined. */ export declare function resolveLanguage(language?: string): string | undefined; /** * Tokenize `code` into per-line spans for the given language. Unknown or absent * languages yield monochrome lines (every span kind "text"), so rendering never * branches on highlight support. */ export declare function tokenize(code: string, language?: string): CodeToken[][]; /** * The theme-aware color for a token kind. Colors approximate the familiar * GitHub light/dark ramps, drawn from the Tailwind palette so both schemes stay * legible on the muted code surface; the terminal variant passes `dark: true` * unconditionally because its window is fixed dark in every scheme. */ export declare function syntaxColor(kind: TokenKind, tokens: ColorTokens, dark: boolean): string; //# sourceMappingURL=tokenize.d.ts.map