/** * Sidebar / section icons for the docs components. `DocMeta.icon` is a free-form name the backend * passes through untouched (it "never renders an icon itself"); this is the frontend map that turns * that name into an inline SVG. Unknown names (and pages with no `icon`) fall back to a neutral * document glyph, so the nav always renders something sensible. * * All glyphs are 24x24 stroked paths drawn with `currentColor`, so they inherit the nav item's * colour (muted by default, the accent when active). Consumers who want their own set can pass a * `renderIcon` prop to `DocsSidebar`/`DocsIndex` instead of relying on this map. * * Kept free of any `next`/`server-only`/`"use client"` import so both the server components * (`DocsIndex`) and the client one (`DocsSidebar`) can render it. */ import type { ReactElement } from "react"; /** * Renders the built-in icon for a front-matter `icon` name as an inline SVG, falling back to a * neutral document glyph for an unknown or missing name. * * @param props.name - the front-matter `icon` value (or `undefined`). * @param props.size - the pixel width/height. Defaults to `16`. * @param props.className - optional class applied to the ``. * @returns the icon element. */ export declare function DocsIcon({ name, size, className }: { name?: string | undefined; size?: number; className?: string; }): ReactElement;