import { StyleProp, ViewStyle, ModalProps as RModalProps } from 'react-native'; import type { ReactNode, PropsWithChildren, ComponentType, Ref } from 'react'; import { SxProps } from '../../lib/styleDictionary'; import { ScrollViewProps } from '../ScrollView'; export type PositionType = 'top' | 'bottom' | 'center'; /** @deprecated: deprecated not is necessary */ export type ModalHandle = { onClose: () => void; }; /** * Reference object for the Modal component * @property {boolean} isAnimating - Indicates whether the modal animation is currently running * @property {() => void} onClose - Function to close the modal */ export type ModalRef = { isAnimating: boolean; onClose: () => void; }; export type ModalProps = RModalProps & Omit & { animationType?: 'fade' | 'slide' | 'none'; header?: ReactNode; children?: ReactNode; closable?: boolean; closeIcon?: ReactNode; extra?: ReactNode; ref?: Ref; fullScreen?: boolean; hiddenBar?: boolean; maskClosable?: boolean; maskComponent?: ComponentType; onClose?: () => void; position?: PositionType; statusHeight?: number; scrollable?: boolean; visible?: boolean; removePaddingRoot?: boolean; scrollProps?: Omit; sx?: SxProps & { root?: SxProps; mask?: SxProps; container?: SxProps; content?: SxProps; contentScroll?: SxProps; buttonClose?: SxProps; closeIcon?: SxProps; }; styles?: { root?: StyleProp; mask?: StyleProp; container?: StyleProp; content?: StyleProp; contentScroll?: StyleProp; buttonClose?: StyleProp; closeIcon?: StyleProp; }; }; export type ModalHeaderProps = PropsWithChildren; }>; export type ModalFooterProps = PropsWithChildren; }>; export type ModalContentProps = PropsWithChildren; sx?: SxProps; }>; //# sourceMappingURL=types.d.ts.map