import type { MastraScorer } from '../../evals/base.js';
import type { ScorerRunInputForAgent, ScorerRunOutputForAgent } from '../../evals/types.js';
import type { Mastra } from '../../mastra/index.js';
import type { MastraCompositeStore } from '../../storage/base.js';
import type { TargetType } from '../../storage/types.js';
import type { StepResult } from '../../workflows/index.js';
import type { ScorerResult } from './types.js';
/**
 * Resolve scorers from mixed array of instances and string IDs.
 * String IDs are looked up from Mastra's scorer registry.
 */
export declare function resolveScorers(mastra: Mastra, scorers?: (MastraScorer<any, any, any, any> | string)[]): MastraScorer<any, any, any, any>[];
/**
 * Workflow-specific data forwarded to scorers so they can inspect step-level
 * input/output and the executed step path. Surfaced via `targetMetadata` on
 * the scorer run so existing scorer signatures stay unchanged.
 */
export interface WorkflowScorerData {
    stepResults?: Record<string, StepResult<any, any, any, any>>;
    stepExecutionPath?: string[];
    spanId?: string | null;
}
/**
 * Run all scorers for a single item result.
 * Errors are isolated per scorer - one failing scorer doesn't affect others.
 */
export declare function runScorersForItem(scorers: MastraScorer<any, any, any, any>[], item: {
    input: unknown;
    groundTruth?: unknown;
    metadata?: Record<string, unknown>;
}, output: unknown, storage: MastraCompositeStore | null, runId: string, targetType: TargetType, targetId: string, itemId: string, scorerInput?: ScorerRunInputForAgent, scorerOutput?: ScorerRunOutputForAgent, traceId?: string, workflowData?: WorkflowScorerData): Promise<ScorerResult[]>;
//# sourceMappingURL=scorer.d.ts.map