import { type KeyboardEvent, type MouseEvent, type ReactNode, type RefObject } from "react"; import { type IAccessibilityConfigBase } from "../../typings/accessibility.js"; import { type IUiAutofocusOptions } from "../UiFocusManager/UiAutofocus.js"; import { type IUiIconButtonPublicProps } from "../UiIconButton/UiIconButtonRenderer.js"; /** * @internal */ export type UiDrawerTransitionProps = { duration?: number; easing?: "ease-in" | "ease-out" | "ease-in-out"; delay?: number; }; /** * @internal */ export interface IUiDrawerProps extends IUiAutofocusOptions { open?: boolean; mode?: "absolute" | "fixed"; node?: HTMLElement; dataTestId?: string; zIndex?: number; children?: ReactNode; header?: ReactNode; anchor?: "left" | "right"; transition?: UiDrawerTransitionProps; onEscapeKey?: (e: KeyboardEvent) => void; onClickOutside?: (e: MouseEvent) => void; closeLabel?: string; closeButtonSize?: IUiIconButtonPublicProps["size"]; showCloseButton?: boolean; showBackdrop?: boolean; onClickClose?: () => void; returnFocusTo?: string | RefObject | (() => HTMLElement | null); accessibilityConfig?: IAccessibilityConfigBase; } //# sourceMappingURL=types.d.ts.map