import type { PhysicalDatabaseCapacityPolicy } from './capacityPolicy.js'; /** * Agent tag key for the customer-managed deployment name that identifies a * worker's physical database pool, `(organizationId, agentName, engine)`. * * Published on its own rather than read out of * `databaseLifecycle:capacityPolicies`, so a customer who wants no proactive * scaling still gets a resolvable pool. One value, e.g. `customer-opa`. */ export declare const DATABASE_LIFECYCLE_TAG_AGENT_NAME = "databaseLifecycle:agentName"; export declare class PhysicalPoolIdentityError extends Error { readonly code = "physical_pool_identity_invalid"; constructor(message: string); } /** * The single physical pool a worker's registration names, or undefined when it * published none. * * Throws {@link PhysicalPoolIdentityError} when the registration names more * than one pool. Guessing between them would provision infrastructure under * one deployment's Terraform state and hand it to another, so callers must * either refuse the registration or withhold the identity. * * Falls back to the capacity policy's name when the tag is absent, for a * worker predating {@link DATABASE_LIFECYCLE_TAG_AGENT_NAME} that is still * rolling: the policy names the same pool, so identity stays unambiguous. */ export declare function parsePhysicalPoolAgentNameTag(published: string[] | undefined, capacityPolicies?: readonly PhysicalDatabaseCapacityPolicy[]): string | undefined; //# sourceMappingURL=physicalPoolIdentity.d.ts.map