import type { RootStore } from './rootStore'; import type { ServiceStore } from './serviceStore'; import type { TFeathersClient, IKeyValueStore } from './types'; import { Console } from './utils/debugger'; interface IAuthStoreState { data: any; token: null | string; } export interface IAuthStoreOptions { feathers: TFeathersClient; storage: IKeyValueStore; userService?: ServiceStore; afterAuthenticate?: (token?: string) => void; beforeLogout?: () => void; afterLogout?: () => void; config?: { expireFormat?: 'seconds' | 'miliseconds'; debug: boolean; }; } export declare class AuthStore { state: IAuthStoreState; storageKey: string; onAuthentication?: (token?: string | null) => void; client: TFeathersClient; storage: IKeyValueStore; userService?: ServiceStore; expireFormat: 'seconds' | 'miliseconds'; rootStore: RootStore; isAuthPending: import("@vue/reactivity").Ref; authError: import("@vue/reactivity").Ref<{ name: string; message: string; stack?: string | undefined; } | null | undefined>; debug: boolean; console: ReturnType; afterAuthenticate: (token?: string | undefined) => void; beforeLogout: () => void; afterLogout: () => void; constructor(rootStore: RootStore, options: IAuthStoreOptions); handleEvents(): void; getNow(): number; initialize(): Promise; save(): void; onAuthenticationChange(token: string | null): void; authenticate(email: string, password: string): Promise; reAuthenticate(force?: boolean, tokenExpires?: number): Promise; logout(): Promise; } export {}; //# sourceMappingURL=authStore.d.ts.map