import * as _nuxt_schema from '@nuxt/schema'; export * from '../dist/runtime/types/auth.js'; type SameSite = true | false | "lax" | "strict" | "none"; interface BearerAuthEndpointOptions { login: string; socialLogin: string; logout: string; me: string; refresh: string; forgotPassword: string; resetPassword: string; verifyOtp: string; resendOtp: string; register: string; } interface BearerAuthResponsePaths { token: string[]; refreshToken: string[]; user: string[]; userId: string[]; message: string[]; success: string[]; code: string[]; nextAction: string[]; } interface BearerAuthRedirectOptions { login: string; authenticated: string; logout: string; unauthorized: string; } interface BearerAuthRouteOptions { localApiPrefix: string; public: string[]; authPages: string[]; protectedApiPrefixes: string[]; publicApiPrefixes: string[]; middleware: boolean; strictPrefixMatching?: boolean; } interface BearerAuthCookieOptions { name: string; devName: string; maxAge: number; sameSite: SameSite; secure?: boolean; domain?: string; path: string; } interface BearerAuthCsrfOptions { enabled: boolean; https: boolean; cookieKey: string; devCookieKey: string; headerName: string; methods: string[]; methodsToProtect: string[]; cookie: { path: string; httpOnly: boolean; sameSite: SameSite; secure?: boolean; }; } type Ability = string; type AuthorizationSource = "session" | "endpoint"; type AuthorizationMatchMode = "all" | "any"; interface AuthorizationRouteRequirement { abilities: string[]; mode?: AuthorizationMatchMode; } interface AuthorizationResponsePaths { roles?: string[]; permissions?: string[]; abilities?: string[]; } interface BearerAuthAuthorizationConfig { enabled: boolean; source: AuthorizationSource; endpoint?: string; responsePaths: AuthorizationResponsePaths; rolePrefix: string; } /** * Shape of the private (server-side) `runtimeConfig.bearerAuth` namespace * populated by the module. Never place functions or secrets beyond what the * server requires here; runtime configuration must stay serializable. */ interface BearerAuthPrivateRuntimeConfig { apiBaseUrl: string; redisUrl: string; sessionSecret: string; appEnv: string; endpoints: BearerAuthEndpointOptions; responsePaths: BearerAuthResponsePaths; sessionCookie: BearerAuthCookieOptions; authorization: BearerAuthAuthorizationConfig; verificationRequiredActions: string[]; twoFactorRequiredActions: string[]; } /** * Shape of the public `runtimeConfig.public.bearerAuth` namespace. * Only serializable, browser-safe values are allowed here. */ interface BearerAuthPublicRuntimeConfig { redirects: Required; routes: Required; authorizationEnabled: boolean; } interface BearerAuthModuleOptions { apiBaseUrl?: string; redisUrl?: string; sessionSecret?: string; appEnv?: string; installCsurf?: boolean; endpoints?: Partial; responsePaths?: Partial; redirects?: Partial; routes?: Partial; sessionCookie?: Partial; csrf?: Partial; authorization?: Partial; verificationRequiredActions?: string[]; twoFactorRequiredActions?: string[]; } declare const module: _nuxt_schema.NuxtModule; export { module as default }; export type { Ability, AuthorizationMatchMode, AuthorizationResponsePaths, AuthorizationRouteRequirement, AuthorizationSource, BearerAuthAuthorizationConfig, BearerAuthCookieOptions, BearerAuthCsrfOptions, BearerAuthEndpointOptions, BearerAuthModuleOptions, BearerAuthPrivateRuntimeConfig, BearerAuthPublicRuntimeConfig, BearerAuthRedirectOptions, BearerAuthResponsePaths, BearerAuthRouteOptions, SameSite };