/*! Strand UI | MIT License | dillingerstaffing.com */ import type { ComponentChildren, JSX } from "preact"; export interface SheetProps extends Omit, "open" | "title"> { open: boolean; onClose: () => void; /** Accessible name; a sheet has no visible heading. */ label: string; /** The committing control, pinned in a foot that never scrolls; name the outcome ("Show 6 events"), not the mechanism. */ action?: ComponentChildren; /** Content above the body, outside its scroll. */ head?: ComponentChildren; /** Drag to dismiss; `false` removes the grabber too. */ draggable?: boolean; children?: ComponentChildren; } /** Past this fraction of the sheet's own height, a drag closes it. */ export declare const DISMISS_FRACTION = 0.28; /** The drag's decision, pure so it is testable where PointerEvent is not (cf: sheet-pointer-capture). */ export declare function dragOutcome(startY: number | null, endY: number, height: number, fraction?: number): { travelled: number; dismiss: boolean; }; /** * Bottom-anchored modal (DL 11.6, 14.8): a head that stays, a body that scrolls, a foot in the thumb's reach, and a grabber that drags to dismiss. Composes `Dialog`. * * @example * Show 6 events}> */ export declare const Sheet: import("preact").FunctionalComponent & { ref?: import("preact").Ref | undefined; }>; //# sourceMappingURL=Sheet.d.ts.map