interface StagingPaths { root: string; transcripts: string; readyFile: string; } declare function stagingPaths(agentId: string): StagingPaths; /** Ensure staging directories exist for an agent. */ declare function ensureStaging(agentId: string): StagingPaths; /** Mark an agent's staging as ready for processing. */ declare function markReady(agentId: string): void; /** Check if an agent ID is new (no existing LDM agent directory). */ declare function isNewAgent(agentId: string): boolean; /** Check if an agent has staged data ready for processing. */ declare function hasStagedData(agentId: string): boolean; /** List all agents with staged data ready for processing. */ declare function listStagedAgents(): string[]; interface StagingResult { agentId: string; transcriptsProcessed: number; backfillChunks: number; dreamWeaverRan: boolean; durationMs: number; } /** Process a staged agent: backfill + dream-weave + move to live. */ declare function processStagedAgent(agentId: string): Promise; /** Process all staged agents. */ declare function processAllStaged(): Promise; export { type StagingPaths, type StagingResult, ensureStaging, hasStagedData, isNewAgent, listStagedAgents, markReady, processAllStaged, processStagedAgent, stagingPaths };