/**
 * ContextBroker — builds ContextCapsule from DAG state.
 *
 * Collects dependency outputs, graph memory, prior attempts,
 * evidence requirements into a bounded capsule.
 *
 * Integrates ContextBudgetOptimizer for priority-based trimming.
 */
import type { DagNode } from "../orchestration/dag.js";
import type { RunState } from "../contracts/orchestration.js";
import { type ContextCapsule } from './context-capsule.js';
import type { ContextAdjustment } from "../evidence/attempt-record.js";
import { type ContextBudgetReport } from "./context-budget-optimizer.js";
import { type HeadroomDecision } from "./headroom-policy.js";
export interface ContextBrokerOptions {
    readonly projectRoot?: string;
    readonly graphMemoryPath?: string;
    readonly goal?: string;
    readonly system?: string;
    /**
     * Model context window size in tokens. Used for headroom compaction
     * threshold evaluation. Default: OMK_CONTEXT_WINDOW env or 200000.
     */
    readonly contextWindow?: number;
}
export interface ContextBrokerResult {
    readonly capsule: ContextCapsule;
    readonly report: ContextBudgetReport;
    /** Headroom compaction decision — additive; existing consumers unaffected. */
    readonly headroomDecision: HeadroomDecision;
}
export declare function createContextBroker(options?: ContextBrokerOptions): {
    buildCapsule: (node: DagNode, state?: RunState, adjustment?: ContextAdjustment) => Promise<ContextBrokerResult>;
};
