import React from 'react'; import check, { IAuthorityType } from './CheckPermissions'; import Secured from './Secured'; interface AuthorizedProps { authority: IAuthorityType; noMatch?: React.ReactNode; allowCheck?: boolean; } export declare type IAuthorizedType = React.FunctionComponent & { Secured: typeof Secured; check: typeof check; hasPermission: (authorized: string | string[] | undefined, allowCheck?: boolean) => boolean; hasEveryPermission: (authorized: string | string[] | undefined, allowCheck?: boolean) => boolean; }; declare const _default: IAuthorizedType; export default _default;