/** * Interactive Test Builder - Build agent tests via conversational prompts. * * @example * ```bash * agentprobe build-test * agentprobe build-test --output tests/my-test.yaml * ``` */ import type { TestCase } from './types'; export interface TestBuilderAnswers { description: string; input: string; expectedTool?: string; expectedOutput?: string; safetyChecks?: string[]; maxSteps?: number; maxDurationMs?: number; tags?: string[]; } export interface TestBuilderConfig { outputDir: string; format: 'yaml' | 'json'; } export interface GeneratedTest { testCase: TestCase; filename: string; content: string; } export declare const DEFAULT_BUILDER_CONFIG: TestBuilderConfig; /** * Convert builder answers to a test case. */ export declare function answersToTestCase(answers: TestBuilderAnswers): TestCase; /** * Generate a filename from a description. */ export declare function generateFilename(description: string): string; /** * Serialize a test case to YAML or JSON. */ export declare function serializeTest(testCase: TestCase, format?: 'yaml' | 'json'): string; /** * Build a test from answers and save to file. */ export declare function buildAndSave(answers: TestBuilderAnswers, config?: TestBuilderConfig): GeneratedTest; /** * Validate builder answers. */ export declare function validateAnswers(answers: Partial): string[]; /** * Interactive test builder using readline (for CLI). */ export declare function interactiveBuild(config?: TestBuilderConfig): Promise; /** * Format test preview for display. */ export declare function formatTestPreview(testCase: TestCase): string; //# sourceMappingURL=test-builder.d.ts.map