import { type DrizzleExecutor } from "../drizzle.js"; /** * Claims the oldest eligible active agent's agentTurns item for one worker and records a bounded ownership lease. * The active identity query and conditional state transition prevent deactivated work from resuming while serializing competing workers to at most one executor. */ export declare function agentTurnTakeNext(executor: DrizzleExecutor, chatId: string, workerId: string): Promise<{ agentUserId: string; actorUserId: string; baselineMessageCount?: number; chatId: string; lastSessionEventId?: string; leaseExpiresAt?: string; runId?: string; sessionId: string; startedAt: string; streamCommittedText: string; text: string; userMessageId: string; workerId: string; } | undefined>; //# sourceMappingURL=agentTurnTakeNext.d.ts.map