import { PermissionCheckConfig } from "../../../../fd-toolbox/server/auth/permissions/permission-check-config";
import { ResourceMeta } from "../../core/resource-meta";
import { CrudAction } from "../../../../fd-toolbox/enums/enums";
import { WithId } from "../../../../fd-toolbox-core/types/resource-with-id";
/**
 * Retrieves a configuration object for permission checking {@link PermissionCheckConfig}.
 *
 * @param userId - The id of the user for whom the permission check is performed.
 * @param resourceMeta - Metadata of the resource {@link ResourceMeta}.
 * @param resource - The resource object for which permission checker is performed.
 * @param action - The CRUD action to check {@link CrudAction}.
 * @param throwIfNoPermission - Whether to throw an exception when permission is denied.
 */
export declare function getPermissionCheckConfig(userId: string, resourceMeta: ResourceMeta, resource?: WithId, action?: CrudAction, throwIfNoPermission?: boolean): PermissionCheckConfig;
