import type { LanguageModel, ModelMessage } from 'ai'; import type { StreamPart } from '../../types/stream.js'; import type { ExtractedValueStore } from './store.js'; import type { Extractor, ExtractorRuntimeContext } from './types.js'; export interface RunExtractorsOptions { extractors: readonly Extractor[]; store: ExtractedValueStore; model: LanguageModel; messages: ModelMessage[]; ctx: ExtractorRuntimeContext & { emit: (part: StreamPart) => void; }; abortSignal?: AbortSignal; } export interface ExtractionRunResult { values: Record; failures: Array<{ slug: string; error: string; }>; } /** Runs all extractors in one merged structured model call; persists per slug on success. */ export declare function runExtractors(options: RunExtractorsOptions): Promise;