import { type Database } from "./database.js"; export declare const INTERACTION_ONLY_IDLE_BUCKETS: readonly ["lt_30m", "30m_2h", "2h_6h", "gte_6h"]; export type InteractionOnlyIdleBucket = (typeof INTERACTION_ONLY_IDLE_BUCKETS)[number]; export type InteractionOnlyLeaseCandidate = { accountId: string; workspaceId: string; sandboxGroupId: string; }; export declare function interactionOnlyIdleBucket(idleMs: number): InteractionOnlyIdleBucket; /** * Read-only inventory of warm leases whose ONLY holders are Browser/Computer * interaction holders, bucketed by time since the newest interaction activity * (holder heartbeat, controller heartbeat, or last use). Interaction holders * deliberately never expire by timestamp, so such a box stays warm until its * session ends or the provider deadline; this makes that visible. Candidates * come from the sanctioned cross-workspace warm-lease list; each workspace is * then read under its own RLS scope. No lock beyond the snapshot is taken. */ export declare function countInteractionOnlyWarmLeasesByIdle(db: Database, candidates: InteractionOnlyLeaseCandidate[], options?: { now?: Date; maxWorkspaces?: number; }): Promise>;