import * as React from 'react'; export type SideModalSize = 'small' | 'large'; export interface SideModalProps { /** Controlled open state. Omit for an uncontrolled panel driven by `trigger`. */ isOpen?: boolean; /** * Allow dismissal by Escape and backdrop click. * @default true */ dismissible?: boolean; /** * Render the decorative accent splash behind the content. * @default false */ showModalAccent?: boolean; className?: string; contentClassName?: string; backdropClassName?: string; onOpenChange?: (open: boolean) => void; onClose?: () => void; onBackdropClick?: () => void; children?: React.ReactNode; trigger?: React.ReactElement | null; portalContainer?: HTMLElement | React.RefObject | null; /** * Accessible name for the panel. * @default 'Side modal' */ ariaLabel?: string; /** * `small` caps at 456px; `large` takes most of the viewport width. * @default 'large' */ size?: SideModalSize; closeIcon?: React.ReactNode; /** * @default 'Close side modal' */ closeAriaLabel?: string; } declare const panelStyles: (props?: ({ size?: "large" | "small" | null | undefined; } & import("class-variance-authority/types").ClassProp) | undefined) => string; /** * A panel that slides in from the right edge, for a task that needs room but should * keep the page behind it visible. * * Modal: focus moves inside, the rest of the page is marked `aria-hidden`, and Escape * closes unless `dismissible` is false. Choose this over a {@link Dialog} when the * context behind matters — reviewing a record while its list stays on screen — and a * `Dialog` when it does not. * * **Portalled.** Stamps the active theme, since the panel renders into * `document.body`, outside the element carrying `data-theme`. * * @example * Details} ariaLabel="Order details"> * * */ export declare const SideModal: React.ForwardRefExoticComponent>; export { panelStyles as sideModalPanelStyles }; export declare const Sheet: React.ForwardRefExoticComponent>; export declare const SheetContent: React.ForwardRefExoticComponent>; export declare const SheetTrigger: React.ForwardRefExoticComponent>; export declare const SheetTitle: React.ForwardRefExoticComponent>; export declare const SheetDescription: React.ForwardRefExoticComponent>; export declare const SheetHeader: React.ForwardRefExoticComponent>; export declare const SheetFooter: React.ForwardRefExoticComponent>; export declare const SheetClose: React.ForwardRefExoticComponent>; //# sourceMappingURL=side-modal.d.ts.map