import { BaseKey, IResourceItem, ITreeMenu } from "../../interfaces"; export declare type CanParams = { /** * Resource name for API data interactions */ resource: string; /** * Intenden action on resource */ action: string; /** * Parameters associated with the resource * @type { resource?: [IResourceItem](https://refine.dev/docs/api-reference/core/interfaceReferences/#canparams), id?: [BaseKey](https://refine.dev/docs/api-reference/core/interfaceReferences/#basekey), [key: string]: any } */ params?: { resource?: IResourceItem & { children?: ITreeMenu[]; }; id?: BaseKey; [key: string]: any; }; }; export declare type CanReturnType = { can: boolean; reason?: string; }; export interface IAccessControlContext { can?: ({ resource, action, params }: CanParams) => Promise; } export declare type AccessControlProvider = Required; //# sourceMappingURL=IAccessControlContext.d.ts.map