@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
12 lines • 499 B
text/typescript
import type { Element } from 'hast';
/**
* Calculates the shared indent level for a set of line elements.
*
* Finds the minimum leading whitespace across all non-empty lines,
* then divides by the indent size (2 spaces) and floors to get
* the indent level.
*
* @param lineElements - Array of HAST line elements to analyze
* @returns The shared indent level (e.g., 2 for 4 leading spaces with 2-space indent)
*/
export declare function calculateFrameIndent(lineElements: Element[]): number;