import type { MenuTreeNode } from '../../../typings/admin/base/permission';
export declare const useUserStore: import("pinia").StoreDefinition<"user", {
    adminId: number;
    username: string;
    isSuper: boolean;
    perms: string[];
    menus: MenuTreeNode[];
    loaded: boolean;
}, {
    navMenus(state: {
        adminId: number;
        username: string;
        isSuper: boolean;
        perms: string[];
        menus: {
            id: number;
            parentId: number | null;
            name: string;
            router: string | null;
            perms: string | null;
            type: number;
            icon: string | null;
            orderNum: number;
            viewPath: string | null;
            remoteName: string | null;
            remoteEntry: string | null;
            remoteModule: string | null;
            appKey: string | null;
            keepAlive: boolean;
            isShow: boolean;
            children?: /*elided*/ any[];
        }[];
        loaded: boolean;
    } & import("pinia").PiniaCustomStateProperties<{
        adminId: number;
        username: string;
        isSuper: boolean;
        perms: string[];
        menus: MenuTreeNode[];
        loaded: boolean;
    }>): MenuTreeNode[];
}, {
    load(): Promise<void>;
    /** 菜单 CRUD 后刷新侧栏/权限（不重拉 me） */
    reloadMenus(): Promise<void>;
    hasPerm(code: string | string[]): boolean;
    logout(): void;
}>;
