import * as _nuxt_schema from '@nuxt/schema'; import { FetchRequest, FetchOptions } from 'ofetch'; interface Endpoints { csrf: string; login: string; logout: string; user: string; } interface Redirects { home: string; login: string; logout: string; } interface ModuleOptions { csrf: CSRFSpec; token: boolean; baseUrl: string; endpoints: Endpoints; redirects: Redirects; } interface CSRFSpec { headerKey: string; cookieKey: string; } type ApiFetch = (endpoint: FetchRequest, options?: FetchOptions) => Promise; type Csrf = Promise; type Callback = (response: any) => void; interface SanctumAuthPlugin { login: (data: any, callback?: Callback | undefined) => Promise; logout: (callback?: Callback | undefined) => Promise; getUser(): Promise; } declare module 'vue/types/vue' { interface Vue { $sanctumAuth: SanctumAuthPlugin; } } declare module '#app' { interface NuxtApp extends PluginInjection { } } interface PluginInjection { $sanctumAuth: SanctumAuthPlugin; $apiFetch: ApiFetch; $csrf: Csrf; } declare module '@vue/runtime-core' { interface ComponentCustomProperties extends PluginInjection { } } declare const _default: _nuxt_schema.NuxtModule; export { _default as default };