// Generated by dts-bundle-generator v9.5.1 import { ICustomElement } from 'component-register'; import { AnimationPlaybackControlsWithThen } from 'motion'; export type CorrectComponentOptions = { element: HTMLElement & ICustomElement; }; export type CorrectComponentType = (props: T, options: CorrectComponentOptions) => unknown; export type Props = {}; declare const Name = "drawer-content"; declare const Component: CorrectComponentType; export type Action = (typeof ACTION)[keyof typeof ACTION]; declare const ACTION: { OPEN: string; CLOSE: string; TOGGLE: string; }; type Props$1 = { target?: string; action?: Action | ""; on?: keyof HTMLElementEventMap | "enter" | "exit"; preventDefault: boolean; }; declare const Name$1 = "drawer-trigger"; declare const Component$1: CorrectComponentType; type Props$2 = {}; declare const Name$2 = "drawer-backdrop"; declare const Component$2: CorrectComponentType; type Props$3 = { isOpen: boolean; id: string; closeOnEscape: boolean; shouldTrapFocus: boolean; isAnimating: boolean; debug?: boolean; }; declare const Name$3 = "drawer-context"; declare const Component$3: CorrectComponentType; export type StoreContext = { animationQueue: AnimationPlaybackControlsWithThen[]; }; export type CreateContextOptions = { root: HTMLElement & ICustomElement; isOpen: boolean; isAnimating: boolean; }; export declare const useDrawer: (element: HTMLElement & ICustomElement) => readonly [ { isOpen: boolean; isAnimating: boolean; animationQueue: AnimationPlaybackControlsWithThen[]; }, { readonly updateAnimationQueue: (animation: AnimationPlaybackControlsWithThen) => void; readonly close: () => void; readonly open: () => void; readonly toggle: () => void; } ]; export declare const withDrawerElementContext: (target: string | import("solid-js").Accessor | import("solid-js").Accessor<() => Element>, dependencies: import("solid-js").Accessor | undefined, cb: (context: readonly [ { isOpen: boolean; isAnimating: boolean; animationQueue: AnimationPlaybackControlsWithThen[]; }, { readonly setElementState: (key: keyof Omit, value: boolean | ((v: boolean) => boolean)) => void; readonly setStore: import("solid-js/store").SetStoreFunction; } ], dependencies: D) => void | (() => void)) => void; export declare const getDrawerContext: (element: Element) => readonly [ { isOpen: boolean; isAnimating: boolean; animationQueue: AnimationPlaybackControlsWithThen[]; }, { readonly updateAnimationQueue: (animation: AnimationPlaybackControlsWithThen) => void; readonly close: () => void; readonly open: () => void; readonly toggle: () => void; } ]; export type DrawerContentProps = Props; export type DrawerContextProps = DrawerContext.Props; export type DrawerTriggerProps = Props$1; export type DrawerBackdropProps = Props$2; declare namespace DrawerContext { export { Component$3 as Component, Name$3 as Name, Props$3 as Props }; } export {};