import { NavigationActionType } from '@resourge/history-store/mobile'; import { Blocker } from '../index.native'; import { BlockerResult } from '../useBlocker/useBlockerTypes'; export type UsePromptProps = { /** * When true blocks url change */ when: Blocker | boolean; }; /** * @param when When `true` it will prompt the user * before navigating away from a screen. * (accepts method that return's boolean). */ export declare const usePrompt: ({ when }: UsePromptProps) => BlockerResult;