import { AgentStatus } from '../types/index.js'; type AmbientState = 'off' | 'idle' | 'cooldown' | 'waiting' | 'running' | 'ready' | 'done'; type AmbientMode = 'standard' | 'autonomous'; interface AmbientStatus { state: AmbientState; mode: AmbientMode; iteration: number; maxIterations: number; secondsRemaining: number; } interface Opts { enabled: boolean; autonomous?: boolean; idleThresholdMs?: number; cooldownMs?: number; maxIterations?: number; agentStatus: AgentStatus; lastQuery?: string | null; /** Last assistant response text — checked for [AMBIENT_DONE] completion signal. */ lastResponse?: string | null; onFire: (prompt: string, iteration: number) => Promise | void; /** Called when the agent signals completion with [AMBIENT_DONE] or similar. */ onComplete?: () => void; } declare function useAmbient(opts: Opts): AmbientStatus & { reset: () => void; trigger: () => void; }; export { type AmbientMode, type AmbientState, type AmbientStatus, useAmbient };