import { RightRole } from '@edifice.io/client'; export interface IObjectWithRights { rights: string[]; } interface AccessControlProps { roles: RightRole | RightRole[]; rights: string | string[] | IObjectWithRights | IObjectWithRights[]; action: string | undefined; } export declare function useAccessControl({ roles, rights, action, }: AccessControlProps): { visible: boolean; refreshState: () => Promise; }; export {};