import type { PageAuth, FeatureStatus } from '@donotdev/core';
export interface RedirectGuardOptions {
    /** Auth configuration for this route */
    auth?: PageAuth | false;
    /** Custom redirect target (overrides auth config defaults) */
    redirectTo?: string | null;
    /** Custom condition function to check if redirect should happen */
    condition?: (user: any, status: FeatureStatus) => boolean;
}
export interface RedirectGuardResult {
    /** Whether redirect should happen */
    shouldRedirect: boolean;
    /** Target path for redirect, or null if no redirect */
    redirectTo: string | null;
    /** Whether auth state is still being checked */
    isChecking: boolean;
}
/**
 * Hook that checks if redirect should happen before render
 *
 * Prevents content flash by determining redirect state synchronously.
 * Returns safe defaults on server (SSR-safe).
 *
 * @param options - Redirect guard configuration
 * @returns Redirect guard state
 */
export declare function useRedirectGuard(options?: RedirectGuardOptions): RedirectGuardResult;
//# sourceMappingURL=useRedirectGuard.next.d.ts.map