import { EventEmitter } from '../../stencil-public-runtime'; export type DrawerDirection = 'top' | 'right' | 'bottom' | 'left'; /** * seki-drawer-content: Container for drawer content with gesture support * * @component DrawerContent */ export declare class SekiDrawerContent { el: HTMLElement; /** * Direction the drawer slides in from * @default 'bottom' */ direction: DrawerDirection; /** * Comma-separated snap points (0-1). E.g., "0.5,1" for half and full open * @default '1' */ snapPoints: string; /** * Show the drag handle indicator * Default: true for bottom/top, false for left/right */ showHandle?: boolean; /** * Distance threshold (0-1) to trigger close when dragging * @default 0.5 */ closeThreshold: number; /** * Velocity threshold (px/s) to trigger close on quick swipe * @default 500 */ velocityThreshold: number; /** * Accessible label for the drawer */ ariaLabel?: string; /** * Parsed snap points array */ parsedSnapPoints: number[]; /** * Current drag state */ isDragging: boolean; /** * Current drag offset in pixels */ dragOffset: number; /** * Current open percentage (0-1) */ openPercent: number; /** * Whether the parent seki-drawer is open. Always true when used without a * seki-drawer parent (e.g. mounted standalone). */ _isOpen: boolean; /** Title text mirrored for the accessible name (#357). */ _label: string; /** Description text mirrored for the accessible description (#357). */ _description: string; /** * Emitted to request drawer close */ requestClose: EventEmitter; /** * Emitted to request snap to a point */ requestSnap: EventEmitter<{ point: number; }>; private startY; private startX; private contentEl; private positions; private drawerConsumer; /** * Modal behaviour (utils/overlay.ts): focus moved in and trapped, page * scroll locked, focus restored on close, Escape closes this drawer only * when nothing is open on top of it. */ private layer; private labels; /** * Computed: should show handle based on prop or direction default */ private get shouldShowHandle(); /** * Computed: is horizontal direction */ private get isHorizontal(); connectedCallback(): void; componentWillLoad(): void; /** Propagate the direction to the parent for styling. */ propagateDirection(): void; /** * Re-read the parent's open state. Runs once on connect (picking up a drawer * that is already open, e.g. ``) and on every publish. */ private syncOpenState; componentDidRender(): void; parseSnapPoints(): void; private handleCloseClick; private handlePointerDown; private handlePointerMove; private handlePointerUp; private calculateVelocity; private isVelocityClosing; private getDrawerDimension; private findNearestSnapPoint; private getTransformStyle; disconnectedCallback(): void; render(): any; }