import type { BootstrapSheetOptions, ResolvedSheetOptions } from './constants'; export type { BootstrapSheetOptions } from './constants'; /** * @class BootstrapSheet - A touch-friendly bottom sheet component for Bootstrap 5 * @version 0.5.1 * @author Sergey Mironov * @license MIT (https://github.com/mironovsergey/bootstrap-sheet/blob/main/LICENSE) */ declare class BootstrapSheet { #private; /** * Creates a new BootstrapSheet instance. * If an instance already exists for the given element, it is returned instead. * @param element - The sheet element or a selector string * @param config - Configuration options to override defaults * @throws {Error} If the element is not found or invalid * @throws {TypeError} If config has invalid property types */ constructor(element: HTMLElement | string, config?: BootstrapSheetOptions); /** * Get the component name * @returns The component name */ static get NAME(): string; /** * Get the default configuration * @returns The default configuration */ static get Default(): ResolvedSheetOptions; /** * Get an instance associated with an element * @param element - The element or selector * @returns Instance or null */ static getInstance(element: HTMLElement | string): BootstrapSheet | null; /** * Get or create an instance * @param element - The element or selector * @param config - Configuration options * @throws {Error} If element parameter is invalid * @throws {TypeError} If config has invalid property types * @returns The instance */ static getOrCreateInstance(element: HTMLElement | string, config?: BootstrapSheetOptions): BootstrapSheet; /** * Check if the sheet is currently shown * @returns True if shown, false otherwise */ get isShown(): boolean; /** * Check if the sheet is currently transitioning * @returns True if transitioning, false otherwise */ get isTransitioning(): boolean; /** * The detent the sheet is resting at. * * Reports the resting position, not the position in flight: during a drag or * an animation it still names where the sheet last settled. * @returns The current detent */ get currentDetent(): number; /** * Animate the sheet to one of its configured detents * @param detent - A value from the `detents` option * @fires EVENT.DETENT_CHANGE */ setDetent(detent: number): void; /** * Show the sheet * @fires EVENT.SHOW * @fires EVENT.SHOWN * @see {@link hide} * @see {@link toggle} */ show(): void; /** * Hide the sheet * @fires EVENT.HIDE * @fires EVENT.HIDDEN * @see {@link show} * @see {@link toggle} */ hide(): void; /** * Toggle the sheet visibility */ toggle(): void; /** * Dispose the component and clean up resources * @example * const sheet = new BootstrapSheet('#mySheet'); * // Later, when you want to remove the sheet * sheet.dispose(); */ dispose(): void; } export default BootstrapSheet; declare global { interface Window { BootstrapSheet: typeof BootstrapSheet; } } //# sourceMappingURL=bootstrap-sheet.d.ts.map