import type { ContextBuildRequest, ContextResult, ContextType } from '../types/context.js'; import { ContextContractService } from './context-contract-service.js'; import type { ContextFetcher } from '../context/fetchers/fetcher.js'; /** * ContextPolicyEngine — Ticket 010 * * Assembles a ContextResult for a build request by: * 1. Loading the ContextContract from the contract service. * 2. Calling registered fetchers for each required + optional requirement. * 3. Scoring each block. * 4. Applying the contract's ordering policy. * 5. Enforcing the token budget via the truncation policy. * 6. Computing a deterministic fingerprint. */ export declare class ContextPolicyEngine { private readonly contractService; private readonly fetchers; constructor(contractService: ContextContractService, fetchers: Map); /** * Build a context result for the given request. * * @throws {NovelError} with code CONTEXT_CONTRACT_NOT_FOUND when the * contractId does not resolve to a known contract. */ buildContext(request: ContextBuildRequest): Promise; } //# sourceMappingURL=context-policy-engine.d.ts.map