/**
 * REST endpoints for CLI-initiated test runs.
 *
 * POST /api/v1/test/trigger           - Trigger a test run with a fixture event
 * GET  /api/v1/test/runs/:runId       - Get status of a test run
 * GET  /api/v1/test/runs/:runId/logs  - Get logs for a test run
 * POST /api/v1/test/cancel            - Cancel a running test run
 *
 * All endpoints require Bearer token authentication via the admin token system.
 * The test trigger injects a synthetic event into the existing pipeline,
 * reusing trigger matching and job dispatch.
 */
import { Hono } from 'hono';
import { type TestPipelineDeps } from '../pipeline/test-pipeline.js';
import type { AppConfig } from '../config.js';
import type { TokenManager } from '../secrets/token-manager.js';
import type { Kysely } from 'kysely';
import type { Database } from '../db/types.js';
/** Hono env type for test trigger routes with context variables. */
type TestTriggerEnv = {
    Variables: {
        userId: string;
        routingKey: string | null;
    };
};
/**
 * Dependencies for test trigger routes.
 * Extends TestPipelineDeps with additional route-specific deps.
 */
export interface TestTriggerRouteDeps extends TestPipelineDeps {
    config: AppConfig;
    tokenManager?: TokenManager;
    db: Kysely<Database>;
    cacheStorage?: import('../storage/types.js').CacheStorage;
}
/**
 * Create Hono routes for test trigger and cancel endpoints.
 */
export declare function createTestTriggerRoutes(deps: TestTriggerRouteDeps): Hono<TestTriggerEnv>;
export {};
//# sourceMappingURL=test-trigger.d.ts.map