import * as React from 'react'; import { ReactNode, ComponentPropsWithoutRef } from 'react'; import { Frame, FrameFooter, FrameHeader, FramePanel } from '@atom63/ui-react'; type SlotComponent = ((props: { children?: ReactNode; }) => null) & { slotName: string; }; /** Create a named marker component. It renders nothing on its own; its parent * extracts its children via `pickSlot`. */ declare function createSlot(name: string): SlotComponent; /** Whether any child is an element for the given slot, regardless of its * content. Use this to detect slot *presence* — `pickSlot` returning null is * ambiguous (a present-but-empty slot also yields null). */ declare function hasSlot(children: ReactNode, slot: SlotComponent): boolean; /** Return the children of the first element matching `slot`, or null when the * slot is absent OR present-but-empty. Pair with `hasSlot` when the distinction * matters. */ declare function pickSlot(children: ReactNode, slot: SlotComponent): ReactNode | null; /** Return the children that are NOT one of the given slots (loose content), * re-keyed via `Children.toArray` so the result is safe to render as a list. */ declare function pickRest(children: ReactNode, slots: SlotComponent[]): ReactNode[]; declare const spacingClasses: { readonly block: "my-6 first:mt-0 last:mb-0 sm:my-8"; readonly component: "my-5 first:mt-0 last:mb-0"; readonly media: "my-8 first:mt-0 last:mb-0 sm:my-10"; }; type MdxFrameSpacing = keyof typeof spacingClasses; type MdxFrameRootElement = 'aside' | 'div' | 'figure'; type MdxFrameWidth = 'column' | 'wide' | 'bleed'; type MdxFrameItemTone = 'neutral' | 'negative' | 'positive' | 'warning'; type MdxFrameHeadingProps = { className?: string; description?: ReactNode; descriptionClassName?: string; title?: ReactNode; titleClassName?: string; }; declare function MdxFrameHeading({ className, description, descriptionClassName, title, titleClassName, }: MdxFrameHeadingProps): React.JSX.Element | null; type MdxFrameChromeProps = ComponentPropsWithoutRef; declare function MdxFrameChrome({ border, children, className, ...props }: MdxFrameChromeProps): React.JSX.Element; type MdxFrameProps = Omit, 'children'> & { as?: MdxFrameRootElement; border?: MdxFrameChromeProps['border']; children: ReactNode; frameClassName?: string; spacing?: MdxFrameSpacing; width?: MdxFrameWidth; }; declare const MdxFrame: React.ForwardRefExoticComponent, HTMLElement>, "ref">, "children"> & { as?: MdxFrameRootElement; border?: MdxFrameChromeProps["border"]; children: ReactNode; frameClassName?: string; spacing?: MdxFrameSpacing; width?: MdxFrameWidth; } & React.RefAttributes>; type MdxFrameSurfaceProps = ComponentPropsWithoutRef & { spacing?: MdxFrameSpacing; width?: MdxFrameWidth; }; declare function MdxFrameSurface({ border, children, className, spacing, width, ...props }: MdxFrameSurfaceProps): React.JSX.Element; type FramedBlockHeaderProps = MdxFrameHeadingProps; declare const FramedBlockHeader: typeof MdxFrameHeading; type FramedBlockSpacing = MdxFrameSpacing; type FramedBlockProps = MdxFrameProps; declare const FramedBlock: React.ForwardRefExoticComponent, HTMLElement>, "ref">, "children"> & { as?: MdxFrameRootElement; border?: MdxFrameChromeProps["border"]; children: ReactNode; frameClassName?: string; spacing?: MdxFrameSpacing; width?: MdxFrameWidth; } & React.RefAttributes>; type TechnicalFrameProps = { border?: MdxFrameChromeProps['border']; children: ReactNode; className?: string; dataNumbered?: boolean; headerClassName?: string; headerEnd?: ReactNode; headerStart: ReactNode; panelClassName?: string; width?: MdxFrameWidth; }; declare function TechnicalFrame({ border, children, className, dataNumbered, headerClassName, headerEnd, headerStart, panelClassName, width, }: TechnicalFrameProps): React.JSX.Element; type MdxFrameHeaderProps = ComponentPropsWithoutRef; declare function MdxFrameHeader({ className, ...props }: MdxFrameHeaderProps): React.JSX.Element; type MdxFrameTitleProps = ComponentPropsWithoutRef<'div'>; declare function MdxFrameTitle({ className, ...props }: MdxFrameTitleProps): React.JSX.Element; type MdxFrameDescriptionProps = ComponentPropsWithoutRef<'div'>; declare function MdxFrameDescription({ className, ...props }: MdxFrameDescriptionProps): React.JSX.Element; type MdxFramePanelProps = ComponentPropsWithoutRef; declare function MdxFramePanel({ border, className, ...props }: MdxFramePanelProps): React.JSX.Element; type MdxFrameItemPanelProps = Omit & { bodyClassName?: string; eyebrow?: ReactNode; title: ReactNode; tone?: MdxFrameItemTone; }; declare function MdxFrameItemPanel({ bodyClassName, children, className, eyebrow, title, tone, ...props }: MdxFrameItemPanelProps): React.JSX.Element; type MdxFrameFooterProps = ComponentPropsWithoutRef; declare function MdxFrameFooter({ className, ...props }: MdxFrameFooterProps): React.JSX.Element; export { createSlot as B, hasSlot as C, pickRest as D, pickSlot as E, FramedBlock as F, MdxFrame as M, TechnicalFrame as T, FramedBlockHeader as a, MdxFrameChrome as e, MdxFrameDescription as g, MdxFrameFooter as i, MdxFrameHeader as k, MdxFrameItemPanel as n, MdxFramePanel as q, MdxFrameSurface as v, MdxFrameTitle as x }; export type { TechnicalFrameProps as A, SlotComponent as S, FramedBlockHeaderProps as b, FramedBlockProps as c, FramedBlockSpacing as d, MdxFrameChromeProps as f, MdxFrameDescriptionProps as h, MdxFrameFooterProps as j, MdxFrameHeaderProps as l, MdxFrameHeadingProps as m, MdxFrameItemPanelProps as o, MdxFrameItemTone as p, MdxFramePanelProps as r, MdxFrameProps as s, MdxFrameRootElement as t, MdxFrameSpacing as u, MdxFrameSurfaceProps as w, MdxFrameTitleProps as y, MdxFrameWidth as z };