export { configure, evaluate } from './legacy/evaluate/index.mjs'; import { TaskFn, ScoreFn } from './legacy/shared.mjs'; export { BaseScorerOptions, Score, TaskResult, ToolCall } from './legacy/shared.mjs'; export { ToolCallScorer, ToolCallScorerConfig, ToolCallScorerOptions } from './legacy/scorers/toolCallScorer.mjs'; export { StructuredOutputScorer, StructuredOutputScorerConfig, StructuredOutputScorerOptions } from './legacy/scorers/structuredOutputScorer.mjs'; export { formatScores, wrapText } from './legacy/format.mjs'; import 'ai'; import './internal/matchers.mjs'; /** Options for the temporary scorer-first `describeEval(...)` compatibility API. */ interface LegacyDescribeEvalOptions { data: () => Promise>>; task: TaskFn; skipIf?: () => boolean; scorers: ScoreFn[]; threshold?: number | null; timeout?: number; beforeEach?: () => void | Promise; afterEach?: () => void | Promise; } /** Legacy Vitest matcher function used by `expect(input).toEval(...)`. */ type ToEval = (expected: any, taskFn: TaskFn, scoreFn: ScoreFn, threshold?: number) => Promise; declare module "vitest" { interface Assertion { toEval: ToEval; } interface AsymmetricMatchersContaining { toEval: ToEval; } } /** Defines a scorer-first legacy eval suite. Prefer root `describeEval(...)`. */ declare function describeEval(name: string, options: LegacyDescribeEvalOptions): void; export { type LegacyDescribeEvalOptions, ScoreFn, TaskFn, type ToEval, describeEval };