import * as React from 'react'; import type { ZestPortalModalProps } from '../../types'; /** * A portal element that moves the popup to the top of the app. * * Implemented with React Native's `Modal`, which mounts its children at the * root of the native view hierarchy, contains accessibility focus, and wires * the Android hardware back button (and Escape on web) to `onRequestClose`. * The Modal uses `animationType="none"`: zest never animates anything, and a * native cross-fade the consumer did not ask for fights the enter/exit they * wrote — it tears the surface away mid-exit on close. Pass * `modalProps={{ animationType: 'fade' }}` for the native transition instead. */ export declare function DialogPortal(props: DialogPortal.Props): React.JSX.Element | null; export interface DialogPortalProps { children?: React.ReactNode; /** * Whether to keep the portal mounted (with the modal hidden) while the * dialog is closed. * @default false */ keepMounted?: boolean | undefined; /** * Props forwarded to the underlying React Native `Modal`. Lets you replace * the default `animationType="none"` with a native one, or reach `onShow`, * `supportedOrientations` * and the rest of the Modal API. `visible` stays owned by the dialog's open * state, and `onRequestClose` is chained rather than replaced. */ modalProps?: ZestPortalModalProps | undefined; } export declare namespace DialogPortal { type Props = DialogPortalProps; } //# sourceMappingURL=DialogPortal.d.ts.map