import React, { ReactNode, ForwardRefExoticComponent, PropsWithChildren, RefAttributes } from 'react'; import { Screen } from 'vienna.ui-primitives'; import { RefFunc } from '../Modal/Modal'; export declare const defaultDrawerTestId: DrawerProps['testId']; export type DrawerProps = PropsWithChildren<{ id?: string; state?: { children?: ReactNode; onClose?: (data?: unknown) => void; open?: (() => void) | null; close?: (data?: unknown, force?: boolean) => void; }; isOpen?: boolean; closeIcon?: ReactNode; width?: string | 'auto'; noScroll?: boolean; orientation?: 'left' | 'right' | 'top' | 'bottom'; onClose?: (data?: unknown) => void | boolean | Promise; /** Callback функция открытия окна с учётом времени выполнения анимации */ onAfterOpen?: () => void; onPreDispose?: () => void; closeByFade?: boolean; closeByEscape?: boolean; lockBodyScroll?: boolean; wrapperPortal?: HTMLElement | React.MutableRefObject | null; testId?: { btnClose?: string; overlay?: string; }; iconOrientation?: 'left' | 'right'; }>; export declare const Drawer: ForwardRefExoticComponent> & { Layout: typeof Screen; Head: typeof Screen.Head; Title: typeof Screen.Title; SubTitle: typeof Screen.SubTitle; Body: typeof Screen.Body; Footer: typeof Screen.Footer; };