import type { Heading } from '../../navigation/types.js'; /** * Extracts all headings from a Markdown string and adds URL-friendly slugs to each heading. * Uses GithubSlugger to generate consistent slugs that match GitHub's heading anchor format. * * @param input - The Markdown string to extract headings from * @returns Array of heading objects containing value, depth, and slug * * @example * const markdown = ` * # Getting Started * ## Installation * ### Requirements * ` * const headings = getHeadingsFromMarkdown(markdown) * // Returns: * // [ * // { value: 'Getting Started', depth: 1, slug: 'getting-started' }, * // { value: 'Installation', depth: 2, slug: 'installation' }, * // { value: 'Requirements', depth: 3, slug: 'requirements' } * // ] */ export declare function getHeadingsFromMarkdown(input: string): Heading[]; type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6; /** * Returns the lowest heading level from a list of headings. * * @param headings - Array of heading objects containing depth property * @returns The lowest heading level (1-6) or 1 if no valid headings found * * @example * const headings = [ * { value: 'Getting Started', depth: 1 }, * { value: 'Installation', depth: 2 } * ] * getLowestHeadingLevel(headings) // Returns: 1 */ export declare const getLowestHeadingLevel: (headings: Heading[]) => HeadingLevels; export {}; //# sourceMappingURL=utils.d.ts.map