interface BackNavigationContextValue {
    hasProvider: boolean;
    registerBackHandler: (handler: (() => void) | null) => void;
    triggerBack: () => boolean;
}
export declare function BackNavigationProvider({ children, fallback, }: {
    children: React.ReactNode;
    fallback?: () => void;
}): import("react/jsx-runtime").JSX.Element;
/**
 * Hook for the parent (e.g. BillWithInvoiceScreen) to trigger the registered
 * back handler. Returns `triggerBack()` which calls the handler if one is
 * registered, or the fallback otherwise.
 */
export declare function useBackNavigation(): BackNavigationContextValue;
/**
 * Hook for child pages to register their back handler with the nearest
 * BackNavigationProvider. Uses a ref so the registered callback always
 * invokes the latest handler without re-registering on every render.
 * Returns `true` if a provider is present (handler was registered), `false` otherwise.
 */
export declare function useRegisterBackHandler(handler: () => void): boolean;
export {};
