/// /** * 访问控制相关组件 */ import Provider, { AclProviderProps, ContextValue } from './Provider'; import Choose, { ChooseProps } from './Choose'; import Switch from './Switch'; import Option, { ChooseOptionProps } from './Option'; import Allows, { AllowsProps } from './Allows'; import { allowsInner } from './allowsHocs'; import withAcl, { AclProps, AclInjectedProps } from './withAcl'; import { Rules, Action, Role } from './type'; import useAcl from './hook'; declare const _default: { Provider: typeof Provider; Choose: typeof Choose; Switch: typeof Switch; Option: typeof Option; Allows: typeof Allows; allows: (...actions: import("react").ReactText[]) => >(Target: T) => T; allowsAll: (...actions: import("react").ReactText[]) => >(Target: T) => T; allowsSome: (...actions: import("react").ReactText[]) => >(Target: T) => T; allowsInner: typeof allowsInner; withAcl: typeof withAcl; Context: import("react").Context; useAcl: typeof useAcl; }; export default _default; export { AclProviderProps, ContextValue, ChooseProps, ChooseOptionProps, AllowsProps, AclProps, AclInjectedProps, Rules, Role, Action, };