import type { RunState } from '../../runtime/durable/types.js'; import type { RunStore } from '../../runtime/durable/RunStore.js'; import { type ExtractionConfig } from './trigger.js'; export declare function extractionSucceeded(result: { values: Record; failures: Array<{ slug: string; error: string; }>; }): boolean; export interface RunExtractionAtCloseOptions { runState: RunState; runStore: RunStore; config: ExtractionConfig; turnMessageBaseline: number; run: () => Promise; trackBackground: (promise: Promise) => void; } /** Applies trigger policy at turn close; advances `lastExtractedMessageCount` on success. */ export declare function runExtractionAtClose(options: RunExtractionAtCloseOptions): Promise;