import React from 'react'; import { Action } from './type'; export declare const allowsAll: (...actions: React.ReactText[]) => >(Target: T) => T; export declare const allowsSome: (...actions: React.ReactText[]) => >(Target: T) => T; export declare const allows: (...actions: React.ReactText[]) => >(Target: T) => T; /** * allows 装饰器形式, 一般用于装饰路由组件, 访问该页面时会展示无权访问错误信息 */ export declare function allowsInner(type: 'all' | 'some', otherwise: React.ReactNode | undefined, ...actions: Action[]): >(Target: T) => T;