import type { ContextBroker } from '../../context/broker.js'; import type { AgentGatewayService } from '../../gateway/agent-service.js'; import type { FeedbackService } from '../../gateway/checkpoint-service.js'; import type { AgentCheckpointUseCase } from '../agent-checkpoint-use-case.js'; import type { V1RouteHandler, V1RouteRequest } from '../router.js'; declare const RUNS_PATH = "/api/v1/agent/runs"; type QueryField = 'workspace' | 'client' | 'status' | 'cursor' | 'limit' | 'after' | 'type'; export type AgentRouteContext = { readonly agentCheckpoint: AgentCheckpointUseCase; readonly database: import('../../db/adapter.js').SqliteDatabase; readonly service: AgentGatewayService; readonly feedbackService: FeedbackService; readonly broker: ContextBroker; readonly enqueueWrite: (operation: () => T | PromiseLike) => Promise; }; export declare function queryParameters(url: URL, allowed: readonly QueryField[]): Map; export declare function requireNoQuery(url: URL): void; export declare function decimalQuery(values: ReadonlyMap, field: 'limit' | 'after'): number | undefined; export declare function decodeRunId(raw: string): string; export declare function runIdSegment(pathname: string, suffix?: string): string | undefined; export declare function requireIdempotencyKey(request: V1RouteRequest): string; export declare function isRunsPath(pathname: string): boolean; export declare function createAgentRunsRoute(context: AgentRouteContext): V1RouteHandler; export declare function agentRunsOperation(method: string, pathname: string): string | undefined; export { RUNS_PATH }; //# sourceMappingURL=agent-runs.d.ts.map