import { NavigationApi, NavigationListener } from 'piral-core'; import type { PromptMessage } from './types'; /** * Hook to notify the user in case of potential data loss when * performing a page transition (internal or external). * @param active True if the prompt should be shown, otherwise false. * @param navigation The navigation API. * @param message The message to display when the prompt is shown. */ export declare function usePrompt(active: boolean, navigation: NavigationApi, message: PromptMessage, onTransition?: NavigationListener): void;