/** * Spec route handlers */ import type { RouteContext, ErrorResponse } from "./types.js"; import type { DispatchRequest, DispatchResponse } from "../types.js"; /** * GET /specs - List all specs (optionally filtered by repo) */ export declare function handleListSpecs(ctx: RouteContext, repoId?: string): { specs: import("../types.js").SpecSummary[]; }; /** * GET /specs/:id - Get a specific spec */ export declare function handleGetSpec(ctx: RouteContext, specId: string): ErrorResponse | { spec: import("../types.js").Spec; }; /** * GET /specs/:id/logs - Get logs for a spec */ export declare function handleGetSpecLogs(ctx: RouteContext, specId: string): ErrorResponse | { logs: string[]; complete: boolean; }; /** * POST /specs - Submit a spec for execution */ export declare function handleDispatchSpec(ctx: RouteContext, body: DispatchRequest): Promise; /** * POST /specs/:id/cancel - Cancel a spec */ export declare function handleCancelSpec(ctx: RouteContext, specId: string): Promise<{ ok: true; spec: unknown; } | ErrorResponse>; //# sourceMappingURL=specs.d.ts.map