import * as vue from 'vue'; import { App as App$1 } from 'vue'; import * as axios from 'axios'; import * as ant_design_vue_es_theme_themes_default from 'ant-design-vue/es/theme/themes/default'; import * as ant_design_vue from 'ant-design-vue'; import * as ant_design_vue_es_theme_interface from 'ant-design-vue/es/theme/interface'; import * as ant_design_vue_es_theme_internal from 'ant-design-vue/es/theme/internal'; import * as pinia from 'pinia'; import dayjs from 'dayjs'; declare const _default: { install(app: App$1): void; }; /** * ListChat */ interface Chat { avatar: string; chatId: string; description: string; external: boolean; name: string; ownerId: string; ownerIdType: string; tenantKey: string; } interface SpaceNode { spaceId: string; nodeToken: string; objToken: string; objType: string; parentNodeToken: string; nodeType: string; originNodeToken: string; originSpaceId: string; hasChild: boolean; title: string; objCreateTime: string; objEditTime: string; nodeCreateTime: string; creator: string; owner: string; } interface AppTableRecord { recordId: string; createdBy: Person; createdTime: number; lastModifiedBy: Person; lastModifiedTime: number; fields: Record; } interface Person { id: string; name: string; en_name: string; email: string; } interface AppTableField { fieldName: string; type: number; property: AppTableFieldProperty; description: object; isPrimary: boolean; fieldId: string; uiType: string; isHidden: boolean; } interface AppTableFieldProperty { options: AppTableFieldPropertyOption[]; formatter: string; dateFormatter: string; autoFill: boolean; multiple: boolean; tableId: string; tableName: string; backFieldName: string; } interface AppTableFieldPropertyOption { name: string; id: string; color: number; } declare function listChat(): Promise; declare function listBitableField(app_token: string, table_id: string, params?: { view_id: string; }): Promise; declare function retrieveBitableRecord(app_token: string, table_id: string, record_id: string): Promise; declare function retrieveWiKiSpaceNode(token: string): Promise<{ node: SpaceNode; }>; interface NavMenuItem { name: string; url: string; disabled: boolean; children: NavMenuItem[]; } declare function retrieveNavbar(): Promise; interface LarkUser { userId: string; openId: string; name: string; nickname: string; email: string; avatar: LarkUserAvatar; [key: string]: any; } interface LarkUserAvatar { avatar72: string; avatar240: string; avatar640: string; avatarOrigin: string; } declare function listLarkUser(key: string): Promise; interface IProject { id: number; projectId: string; projectName: string; description: string; stage: string; studio: string; iconUrl: string; createTime: string; createUser: string; gameType: string[]; active: boolean; [key: string]: any; } interface App { id: number; appName: string; appNickname: string; shareRole: boolean; shareMember: boolean; selfMap: boolean; description: boolean; iconUrl: string; larkAppId: string; larkAppSecret: string; createTime: string; createUser: string; } interface IUser { id?: number; name: string; email: string; userid: string; openid: string; avatar: string; } interface IProjectMember extends IUser { roles: IRole[]; leaver: boolean; remark: string; } interface IRole { id: number; roleName: string; appId: number; description: string; onlyApp: boolean; preDefined: boolean; level: string; [key: string]: any; } interface IPermission { id: number; permissionName: string; appId: number; description: string; preDefined: boolean; } interface IFeishuAuth { signature: string; timestamp: number; url: string; nonceStr: string; appId: string; locale: string; openId?: string; jsApiList?: string; } interface ILarkWebComponentAuthentication { appId: string; jsapi_ticket: string; nonceStr: string; openId: string; signature: string; timestamp: number; url: string; user_access_token: string; } interface IAppToken { appId: string; nonceStr: string; openId: string; signature: string; timestamp: number; } declare function retrieveUserInfo(appName?: string): Promise<{ user: IUser & { defaultProject: number; }; projects: IProject[]; permissions: string[]; }>; declare function listAppProject(): Promise; declare function updateDefaultProject(projectId: string): Promise>; declare function retrieveDefaultProject(): Promise; declare function larkComponentAuthentication(): Promise; declare function retrieveAppToken(): Promise; declare function listProjectMember(projectId: string, params?: { page?: number; page_size?: number; query?: string; }): Promise; declare function listProjectRole(): Promise; declare const axiosInstance: axios.AxiosInstance; declare const axiosRestInstance: axios.AxiosInstance; declare const env: IEnv; declare function redirectLogin(): void; declare function redirectLogout(): void; interface ApiResponse { code: number; message: string; data?: T; } interface PageData { page: number; page_size: number; total: number; data: T[]; } interface IEnv { apiBaseUrl: string; routeBaseUrl: string; ssoBaseUrl: string; appName: string; hideDevelopment: boolean; larkGroupChatUrl: string; } declare function hasIntersection(arr1: string[], arr2: string[]): boolean; declare function formatBytes(value: number | string): string; declare function formatDate(date?: dayjs.ConfigType): string; declare function timestampToTime(timestamp: number): string; declare function getFileExtension(filename: string): string; declare abstract class BaseApi { url: string; axiosInstance: axios.AxiosInstance; constructor(base: string); list(params?: {}): Promise; list_page(params?: {}): Promise>; create(data: Omit): Promise; retrieve(id: number): Promise; update(id: number, data: Omit): Promise; partialUpdate(id: number, data: T): Promise; destroy(id: number): Promise; } declare enum GitlockPermissionEnum { plugin_view = "plugin_view", repo_add = "repo_add", repo_delete = "repo_delete", repo_modify = "repo_modify", repo_view = "repo_view" } declare enum AlabinPermissionEnum { bug_modify = "bug_modify", manage_view = "manage_view", release_add = "release_add", release_delete = "release_delete" } declare enum DummyfilePermissionEnum { func_view = "func_view", wifi_view = "wifi_view" } declare enum PackagemanagePermissionEnum { permission_manage = "permission_manage", patch_env_delete = "patch_env_delete", patch_env_modify = "patch_env_modify", patch_env_add = "patch_env_add", patch_record_delete = "patch_record_delete", patch_filerecord_delete = "patch_filerecord_delete", patch_file_delete = "patch_file_delete", dev = "dev", mirror = "mirror", prod = "prod" } declare const settings: { darkTheme: { algorithm: ant_design_vue.DerivativeFunc[]; token: { colorBgLayout: string; borderRadius: number; colorPrimary: string; }; }; darkCompactTheme: { algorithm: ant_design_vue.DerivativeFunc[]; token: { colorBgLayout: string; borderRadius: number; colorPrimary: string; }; }; lightTheme: { algorithm: typeof ant_design_vue_es_theme_themes_default.default[]; token: { borderRadius: number; colorPrimary: string; colorBgLayout: string; }; }; lightCompactTheme: { algorithm: ant_design_vue.DerivativeFunc[]; token: { borderRadius: number; colorPrimary: string; colorBgLayout: string; }; }; }; declare const useGlobalStore: pinia.StoreDefinition<"global", pinia._UnwrapAll Promise; user: vue.Ref<{ id?: number | undefined; name: string; email: string; userid: string; openid: string; avatar: string; }>; loading: vue.Ref; project: vue.Ref; projects: vue.Ref<{ [x: string]: any; id: number; projectId: string; projectName: string; description: string; stage: string; studio: string; iconUrl: string; createTime: string; createUser: string; gameType: string[]; active: boolean; }[]>; permissions: vue.Ref; navbar: vue.Ref<{ name: string; url: string; disabled: boolean; children: any[]; }[]>; }, "user" | "loading" | "project" | "projects" | "permissions" | "navbar">>, Pick<{ load: () => Promise; user: vue.Ref<{ id?: number | undefined; name: string; email: string; userid: string; openid: string; avatar: string; }>; loading: vue.Ref; project: vue.Ref; projects: vue.Ref<{ [x: string]: any; id: number; projectId: string; projectName: string; description: string; stage: string; studio: string; iconUrl: string; createTime: string; createUser: string; gameType: string[]; active: boolean; }[]>; permissions: vue.Ref; navbar: vue.Ref<{ name: string; url: string; disabled: boolean; children: any[]; }[]>; }, never>, Pick<{ load: () => Promise; user: vue.Ref<{ id?: number | undefined; name: string; email: string; userid: string; openid: string; avatar: string; }>; loading: vue.Ref; project: vue.Ref; projects: vue.Ref<{ [x: string]: any; id: number; projectId: string; projectName: string; description: string; stage: string; studio: string; iconUrl: string; createTime: string; createUser: string; gameType: string[]; active: boolean; }[]>; permissions: vue.Ref; navbar: vue.Ref<{ name: string; url: string; disabled: boolean; children: any[]; }[]>; }, "load">>; export { AlabinPermissionEnum, type ApiResponse, type App, type AppTableField, type AppTableFieldProperty, type AppTableFieldPropertyOption, type AppTableRecord, BaseApi, type Chat, DummyfilePermissionEnum, GitlockPermissionEnum, type IAppToken, type IEnv, type IFeishuAuth, type ILarkWebComponentAuthentication, type IPermission, type IProject, type IProjectMember, type IRole, type IUser, type LarkUser, type NavMenuItem, PackagemanagePermissionEnum, type PageData, type SpaceNode, axiosInstance, axiosRestInstance, _default as directives, env, formatBytes, formatDate, getFileExtension, hasIntersection, larkComponentAuthentication, listAppProject, listBitableField, listChat, listLarkUser, listProjectMember, listProjectRole, redirectLogin, redirectLogout, retrieveAppToken, retrieveBitableRecord, retrieveDefaultProject, retrieveNavbar, retrieveUserInfo, retrieveWiKiSpaceNode, settings, timestampToTime, updateDefaultProject, useGlobalStore };