import { BaseScorerOptions, ScoredResult } from './scoring.js'; import { BaseMatcherConfig, MatchStrategy, FuzzyMatchOptions } from './matchers.js'; import '@vitest-evals/core'; interface StructuredOutputScorerOptions extends BaseScorerOptions { /** Expected structured output fields. */ expected?: Record; } interface StructuredOutputScorerConfig extends BaseMatcherConfig { /** Field matching strategy used for expected structured output values. */ match?: MatchStrategy; /** Output field that indicates an error. Set to `null` to disable. */ errorField?: string | null; /** Options used when `match` is `"fuzzy"`. */ fuzzyOptions?: FuzzyMatchOptions; } /** Creates a structured-output scorer used by both harness judges and legacy wrappers. */ declare function StructuredOutputScorer(config?: StructuredOutputScorerConfig): (opts: StructuredOutputScorerOptions) => Promise; export { StructuredOutputScorer, type StructuredOutputScorerConfig, type StructuredOutputScorerOptions };