import { type Context, type SyntheticEvent } from 'react'; /** * Context used to share the `onClose` prop value with sub-components. */ export declare const OnCloseContext: Context<((event: SyntheticEvent, analyticsEvent?: any) => void) | undefined>; export declare const useOnClose: () => ((event: SyntheticEvent, analyticsEvent?: any) => void) | undefined; /** * Used to ensure Drawer sub-components are used within a Drawer component, * and provide a useful error message if not. */ export declare const EnsureIsInsideDrawerContext: Context; export declare const useEnsureIsInsideDrawer: () => void;