UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

15 lines 723 B
import type { Root } from 'hast'; /** * TypeScript built-in type keywords that starry-night classifies as `pl-c1`. * These are language primitives from the TypeScript specification. */ export declare const BUILT_IN_TYPES: Set<string>; /** * Extends a syntax-highlighted HAST tree with additional `di-*` CSS classes * for fine-grained styling control. All extensions are **additive** — existing * `pl-*` classes from starry-night are never removed. * * @param tree - The HAST root node produced by starry-night's `highlight()` * @param grammarScope - The grammar scope used for highlighting (e.g., 'source.tsx', 'source.css') */ export declare function extendSyntaxTokens(tree: Root, grammarScope: string): void;