/** * Shared types for route handlers */ import type { AuthContext } from "../auth/index.js"; import type { StateStore } from "../state/store.js"; import type { Orchestrator } from "../executor/orchestrator.js"; import type { Broadcaster } from "../ws/broadcaster.js"; import type { ConversationStore } from "../conversations/index.js"; import type { ResolvedServerConfig } from "../config/types.js"; /** * Dependencies available to route handlers */ export interface RouteContext { config: ResolvedServerConfig; store: StateStore; orchestrator: Orchestrator; broadcaster: Broadcaster; conversationStore: ConversationStore | undefined; auth: AuthContext; } /** * Error response */ export interface ErrorResponse { ok: false; error: string; } /** * Create an error response */ export declare function errorResponse(message: string): ErrorResponse; /** * Create a not found response */ export declare function notFound(message?: string): ErrorResponse; //# sourceMappingURL=types.d.ts.map