import * as React from "react"; import { ZqAdminContextProps, BusiCompDefListProps, BusiCompListProps, BusiExtendCompListProps, LinkEntityCompDefMapProps } from "./ZqAdminProvider"; import { IMenuItem } from "./components/Permission/HasPermission"; export declare const useZqAdminContext: () => ZqAdminContextProps; export declare const useBusiCompList: () => BusiCompListProps; export declare const useBusiExtendCompList: () => BusiExtendCompListProps; export declare const useBusiCompDefList: () => BusiCompDefListProps; export declare const useLinkEntityCompMap: () => LinkEntityCompDefMapProps; export declare const useProfile: () => Record; /** * 获取用户的 当前页面的 操作权限 */ export declare const usePagePermissions: () => Array; /** * 获取用户的 所有的 操作权限 */ export declare const useAllPermissions: () => Array; /** * 判断是否有角色 * @param roles 角色 * @returns */ export declare const useHasRole: (...roles: string[]) => boolean; /** * 判断是否有权限 */ interface useHasPermissionsProp { name: string; path?: string; allPage?: boolean; } export declare const useHasPermissions: ({ name, path, allPage }: useHasPermissionsProp) => boolean; /** * 获取当前项目名称 * @returns */ export declare const useProjectName: () => string | undefined; /** * 获取当前用户列表 * @returns */ export declare const useUserList: () => T[]; /** * 获取后端配置 * @returns */ export declare const useCommomSetting: (settingName: string) => { name: string; title: string; value: any; isJson: boolean; } | undefined; /** * 获取后端配置 * @returns */ export declare const useCommomSettingBoolean: (settingName: string) => boolean; export declare const useLoadGptMsg: () => { reqId: any; content: any; stream: any; end: any; status: any; error: any; reasoningContent: any; } | undefined; export declare const useFlowIncTimeOutShowFn: () => React.FC | undefined; export {};