import { CrudAction } from "../../../enums/enums";
import { WithId } from "../../../../fd-toolbox-core/types/resource-with-id";
/**
 * Configuration object for permission checking.
 */
export interface PermissionCheckConfig {
    /** The unique identifier of the user for whom the permission check is performed. */
    userId: string;
    /** Whether to throw an exception when permission is denied. */
    throwIfNoPermission: boolean;
    /** The name of the specific permission to check. */
    permissionName?: string;
    /** The name of the resource being accessed. */
    resourceName?: string;
    /** The unique identifier of resource meta. */
    resourceMetaId?: string;
    /** The name of the property within the resource, if permission is property-specific. */
    propertyName?: string;
    /** The resource object. */
    resource?: WithId;
    /** The CRUD action to check. */
    crudAction?: CrudAction;
}
