import type { PayloadRequest } from 'payload'; import type { MultiTenantPluginConfig } from '../types.js'; type Args = { /** * The tenant already stored on the document, when there is one. */ previousValue?: unknown; req: PayloadRequest; tenantsArrayFieldName: string; tenantsArrayTenantFieldName: string; userHasAccessToAllTenants?: MultiTenantPluginConfig['userHasAccessToAllTenants']; value: unknown; }; /** * Whether the submitted tenant value is one the user is allowed to assign. * * Reads the user's assignments from `req` rather than querying, so it can't conflict with the * write's own transaction. Allows all-tenants users, unchanged values, and userless Local API * writes (seeds, migrations); rejects assigning an unassigned tenant or clearing an existing one. */ export declare const isValidTenantAssignment: ({ previousValue, req, tenantsArrayFieldName, tenantsArrayTenantFieldName, userHasAccessToAllTenants, value, }: Args) => boolean; export {}; //# sourceMappingURL=isValidTenantAssignment.d.ts.map