/** * Creates a navigation guard to redirect authenticated users away from auth pages * * @example * ```ts * import { createAuthGuard } from '@bagelink/auth' * * router.beforeEach(createAuthGuard({ redirectTo: '/dashboard' })) * ``` */ export declare function createAuthGuard(config?: { redirectTo?: string; }): (to: any, _: any) => Promise;