import { UserToken } from '@axinom/mosaic-id-utils';
import React from 'react';
export type UserPermissions = UserToken['permissions'];
export interface EnsurePermissionProps {
    /** The required permissions. */
    permissions: UserPermissions;
    /** The component shown when permissions are insufficient. */
    denied?: React.ReactNode;
}
/**
 * Renders the children only if the current user has the required permissions.
 * The component that will be shown when the permissions are insufficient can be defined through the `denied` prop.
 */
export declare const EnsurePermission: React.FC<EnsurePermissionProps>;
/**
 * Checks whether the current user has the permissions specified as `requiredPermissions`.
 * @param requiredPermissions The required permissions.
 */
export declare const useHasPermissions: () => ((requiredPermissions: UserPermissions) => Promise<boolean>);
//# sourceMappingURL=EnsurePermission.d.ts.map