UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

9 lines 433 B
import type { Root } from 'hast'; /** * Counts the number of lines in a HAST tree without mutating it. * Uses the same logic as starryNightGutter but only returns the count. * @param tree - The HAST tree to count lines in * @returns The number of lines in the tree */ export declare function countLines(tree: Root): number; export declare function starryNightGutter(tree: Root, sourceLines?: string[], frameSize?: number): void;