import { type Pressure } from "./budget.js";
/** One pool as the phone shows it: its slots, what runs and what waits, oldest first. */
export interface PoolView {
    slots: number;
    running: number;
    waiting: number;
    jobs: Array<{
        label: string;
        state: "running" | "waiting";
        priority: "release" | "normal" | "low";
        sinceSeconds: number;
    }>;
}
/**
 * This computer's budget for agent work (`phren fanout run`, `phren heavy`) as
 * it stands now: the two pools and, when memory or load is past the budget,
 * why nothing new should start. Served on the resources reading.
 */
export interface AgentBudget {
    workers: PoolView;
    heavy: PoolView;
    minFreeBytes: number;
    maxLoadPerCore: number;
    overBudget?: string;
}
export declare function agentBudget(pressure: Pressure, now?: number, root?: string, env?: NodeJS.ProcessEnv): AgentBudget;
