import * as React from 'react'; import { View } from 'react-native'; import { type Align, type PhysicalSide, type UseAnchorPositioningSharedParameters } from '../../utils/useAnchorPositioning'; import type { ZestUIComponentProps } from '../../types'; /** * Positions a toast against an anchor, for a toast that belongs to something on * screen rather than to the app as a whole. * Renders a ``. * * **Why this cannot just reuse the other Positioners.** `useAnchorPositioning` * measures anchors in screen coordinates, which every other popup family can use * as-is because they render inside a `statusBarTranslucent` `Modal` whose origin * *is* the screen origin. `Toast.Viewport` is not a Modal — it is an ordinary * View that can sit anywhere — so its own screen origin is subtracted here to * bring the anchor back into the viewport's coordinate space. */ export declare function ToastPositioner(componentProps: ToastPositioner.Props): React.JSX.Element; export interface ToastPositionerState { side: PhysicalSide; align: Align; } export interface ToastPositionerProps extends UseAnchorPositioningSharedParameters, ZestUIComponentProps { /** * The element to position the toast against. Unlike the other popup families * there is no trigger to infer it from, so it is passed in — usually a ref's * `current`. */ anchor?: unknown; } export declare namespace ToastPositioner { type State = ToastPositionerState; type Props = ToastPositionerProps; } //# sourceMappingURL=ToastPositioner.d.ts.map