import { GuardOptions } from '../types';
import { NavigationGuardNext, RouteLocationNormalized } from 'vue-router';

/**
 * Global Permission Guard
 * ------------------------
 * A ready-to-use guard for Vue/Nuxt router.
 *
 * Example:
 * router.beforeEach((to, from, next) => globalGuard(to, from, next, {
 *   authRoutes,
 *   protectedRoutes,
 *   getAuthState: () => authStore.state,
 *   loginPath: '/login',
 *   homePath: '/'
 * }))
 */
export declare const globalGuard: (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext, options?: GuardOptions) => Promise<void>;
export default globalGuard;
//# sourceMappingURL=globalGuard.d.ts.map