import * as React from 'react';
import type { Override } from '../helpers/overrides';
import { SIZE, CLOSE_SOURCE, ANCHOR } from './constants';
export declare type Size = keyof typeof SIZE;
export declare type SizeProp = Size | string;
export declare type Anchor = keyof typeof ANCHOR;
export declare type AnchorProp = Anchor | string;
export declare type CloseSource = keyof typeof CLOSE_SOURCE;
export declare type DrawerOverrides = {
    Root?: Override;
    Backdrop?: Override;
    DrawerBody?: Override;
    DrawerContainer?: Override;
    Close?: Override;
};
export declare type ElementRef = {
    current: any | null;
};
export declare type DrawerProps = {
    /** Sets whether the Drawer should be displayed by easing in and out */
    animate: boolean;
    isOpen: boolean;
    /** If true, focus will shift to the first interactive element within the drawer.
     * If false, the drawer container itself will receive focus.
     * Moving focus into a newly opened drawer is important for accessibility purposes, so please be careful!
     */
    autoFocus: boolean;
    /** Renders all drawer content for SEO purposes regardless of drawer isOpen state */
    renderAll?: boolean;
    /** Where to mount the modal */
    mountNode?: HTMLElement;
    /** Drawer content. The children-as-function API may be preferable
     * for performance reasons (wont render until opened) */
    children?: React.ReactNode | (() => React.ReactNode);
    /** Whether the modal should be closeable by the user
     *  (either via escape, backdrop click, etc). You can set this to
     * false if your modal has an action that the user must take before closing.*/
    closeable: boolean;
    onClose?: (a: {
        closeSource?: CloseSource;
    }) => unknown;
    overrides: DrawerOverrides;
    /** Controls the size of the modal (primarily width).
     * Can be a SIZE constant or css width property value. */
    size: SizeProp;
    anchor: AnchorProp;
    /** Whether the backdrop should be present */
    showBackdrop: boolean;
    /**Function to be called when backdrop is clicked */
    onBackdropClick?: (e: Event) => unknown;
    onEscapeKeyDown?: (e: Event) => unknown;
};
export declare type DrawerPropsWithoutChildren = Omit<DrawerProps, 'children'>;
export declare type DrawerState = {
    isVisible: boolean;
    mounted: boolean;
    isFocusVisible: boolean;
};
export declare type SharedStylePropsArg = {
    children?: React.ReactNode;
    $animating: boolean;
    $isVisible: boolean;
    $isOpen: boolean;
    $size: SizeProp;
    $closeable: boolean;
    $anchor: AnchorProp;
    $isFocusVisible: boolean;
    $showBackdrop: boolean;
};
