import type { ComputedRef } from "vue"; import type RequestError from "../utils/request-error"; import type { FetchStatus, Nullable } from "../typings/common"; import type { Scopes, UserModel } from "../typings/user"; interface State { profile: Nullable; profileStatus: FetchStatus; profileError: Nullable; } export declare const useUserStore: import("pinia").StoreDefinition<"user", State, { userScopes(): Array; checkScopes(state: { profile: { readonly id: number; readonly name: string; readonly email: string; readonly roles: { readonly id: number; readonly name: string; readonly scopes: Array; }[]; } | null; profileStatus: FetchStatus; profileError: { status: number; statusText: string; url: string; body: import("../typings/common").ParsedResponseBody; name: string; message: string; stack?: string; cause?: unknown; } | null; } & import("pinia").PiniaCustomStateProperties): (scopes: Scopes) => boolean; }, { fetchProfile(): void; }>; export declare function useUserPermission(scope: string): ComputedRef; export {};