export type BeforeUnmountCallback = (abortSignal: AbortSignal) => PromiseLike | void; /** * Executes async callback to defer unmounting of children in nearest * TransitionPresence boundary */ export declare function useBeforeUnmount(callback: BeforeUnmountCallback): void; /** * useBeforeUnmount without the warning, this should only be used within the * component in this package. */ export declare function useTransitionPresenceBeforeUnmount(callback: BeforeUnmountCallback): void;