import { type ParticipantBindingEpoch, type WorkerGeneration } from "./canonical.ts"; export declare const WORKER_IDENTITY_VERSION: "orc.worker-identity.v2"; export type WorkerIdentityV2 = OrdinaryWorkerIdentityV2 | BossWorkerIdentityV2; export interface OrdinaryWorkerIdentityV2 { version: typeof WORKER_IDENTITY_VERSION; workerId: string; workerIncarnationId: string; workerGeneration: WorkerGeneration; } export interface BossWorkerIdentityV2 extends OrdinaryWorkerIdentityV2 { bossRunId: string; participantId: string; bindingEpoch: ParticipantBindingEpoch; } export declare function parseWorkerIdentityV2(value: unknown): WorkerIdentityV2; export interface WorkerIdentityEnvironment { AGENT_INTERCOM_WORKER_ID: string; AGENT_INTERCOM_WORKER_INCARNATION_ID?: string; AGENT_INTERCOM_WORKER_GENERATION: string; AGENT_INTERCOM_BOSS_RUN_ID?: string; AGENT_INTERCOM_PARTICIPANT_ID?: string; AGENT_INTERCOM_BINDING_EPOCH?: string; /** Deprecated v1 incarnation name. It is never Boss authority. */ AGENT_INTERCOM_RUN_ID?: string; } /** Maps process environment into the v2 identity without ever interpreting legacy runId as bossRunId. */ export declare function workerIdentityFromEnvironment(value: unknown): WorkerIdentityV2; export interface WorkerEventIdentityV2 { workerId: string; workerIncarnationId: string; workerGeneration: WorkerGeneration; bossRunId?: string; participantId?: string; bindingEpoch?: ParticipantBindingEpoch; } /** Event identity uses the same namespace split but omits the store-envelope version. */ export declare function parseWorkerEventIdentityV2(value: unknown): WorkerEventIdentityV2; //# sourceMappingURL=worker-identity.d.ts.map