import type { AgentRuntime, UUID } from "@elizaos/core"; import type { RouteHelpers, RouteRequestMeta } from "./route-helpers"; type AgentStateStatus = "not_started" | "starting" | "running" | "paused" | "stopped" | "restarting" | "error"; interface AutonomousConfigLike { [key: string]: unknown; } export interface AgentAdminRouteState { runtime: AgentRuntime | null; config: AutonomousConfigLike; agentState: AgentStateStatus; agentName: string; model: string | undefined; startedAt: number | undefined; chatRoomId: UUID | null; chatUserId: UUID | null; chatConnectionReady: { userId: UUID; roomId: UUID; worldId: UUID; } | null; chatConnectionPromise: Promise | null; pendingRestartReasons: string[]; } export interface AgentAdminRouteContext extends RouteRequestMeta, Pick { state: AgentAdminRouteState; onRestart?: (() => Promise) | undefined; onRuntimeSwapped?: () => void; resolveStateDir: () => string; resolvePath: (value: string) => string; getHomeDir: () => string; isSafeResetStateDir: (resolvedState: string, homeDir: string) => boolean; stateDirExists: (resolvedState: string) => boolean; removeStateDir: (resolvedState: string) => void; logWarn: (message: string) => void; } export declare function handleAgentAdminRoutes(ctx: AgentAdminRouteContext): Promise; export {}; //# sourceMappingURL=agent-admin-routes.d.ts.map