import React from 'react'; export declare type IAuthorityType = undefined | string | string[] | Promise | ((currentAuthority: string | string[]) => IAuthorityType); /** * 通用权限检查方法 * Common check permissions method * @param { 权限判定 | Permission judgment } authority * @param { 你的权限 | Your permission description } currentAuthority * @param { 通过的组件 | Passing components } target * @param { 未通过的组件 | no pass components } Exception */ declare const checkPermissions: (authority: IAuthorityType, currentAuthority: string | string[], target: T, Exception: K) => React.ReactNode | T | K; export { checkPermissions }; declare function check(authority: IAuthorityType, target: T, Exception: K, allowCheck?: boolean): T | K | React.ReactNode; export default check;