@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
9 lines • 544 B
text/typescript
import type { Element, ElementContent } from 'hast';
import type { FrameRange } from "./calculateFrameRanges.mjs";
/**
* Creates a HAST frame element (`span.frame`) with the given children and optional metadata.
*
* Used by both `addLineGutters` (initial frame creation) and `restructureFrames`
* (splitting/rebuilding frames for highlighting or comment extraction).
*/
export declare function createFrame(children: Array<ElementContent>, frameType?: FrameRange['type'], indentLevel?: number, truncated?: FrameRange['truncated']): Element;