/**
 * Workers CRUD — register, heartbeat, budget tracking, retire.
 */
import type { WorkforceDb, Worker, RegisterWorkerInput, WorkerStatus } from './types.js';
export declare function registerWorker(db: WorkforceDb, input: RegisterWorkerInput): Worker;
export declare function getWorker(db: WorkforceDb, id: string): Worker | null;
export declare function listWorkers(db: WorkforceDb, status?: WorkerStatus, companyId?: string): Worker[];
export declare function listCompanies(db: WorkforceDb): string[];
export declare function heartbeat(db: WorkforceDb, workerId: string): void;
export declare function recordSpend(db: WorkforceDb, workerId: string, costUsd: number, tokensUsed: number): void;
export declare function adjustScore(db: WorkforceDb, workerId: string, delta: number): void;
export declare function retireWorker(db: WorkforceDb, workerId: string): void;
/** Mark workers silent > staleSecs as stale. Returns IDs updated. */
export declare function markStaleWorkers(db: WorkforceDb, staleSecs?: number): string[];
