import type { DialogResult } from '../dialog'; import { type Snippet } from 'svelte'; type Props = { open: boolean; /** Edge the drawer slides in from. @default 'right' */ side?: 'left' | 'right'; /** Width in px. @default 360 */ width?: number; title?: string; /** Close on ESC, backdrop click, and show the close button. @default true */ dismissible?: boolean; /** Body content. */ children?: Snippet; /** Footer content. */ footer?: Snippet; on?: { /** Fires on close with the result — branch on `result.wasCanceled` to distinguish apply vs dismiss. */ close?: (result: DialogResult) => void; }; }; /** * Drawer — declarative side sheet. A thin wrapper over the imperative `openDrawer` that bridges a * controlled `open` prop to the kit Dialog engine: when `open` is `true` it opens the drawer (rendering * the default slot as the body and the `footer` snippet as the footer), and closes it otherwise. Singleton — * only one drawer shows at a time. Wire `on.close` to set `open` back to `false` when the user dismisses it. */ declare const Cmp: import("svelte").Component; type Cmp = ReturnType; export default Cmp;