import type { CodaliContextPack, CodaliEvidenceItem, CodaliGatewayRequest } from "./CodaliGatewayTypes.js"; import type { CodaliGatewayRunTrace, CodaliGatewayStore, CodaliGatewayStoredToolCall } from "./CodaliGatewayStore.js"; import type { CodaliGatewayVerificationLoopResult } from "./GatewayStateMachine.js"; export interface CodaliContextPackBuilderInput { runId: string; originalQuery?: string; request?: CodaliGatewayRequest; trace?: CodaliGatewayRunTrace; evidence?: CodaliEvidenceItem[]; toolCalls?: CodaliGatewayStoredToolCall[]; verification?: CodaliGatewayVerificationLoopResult; maxContextPackTokens?: number; maxDecisionFacts?: number; maxExcerptChars?: number; } export interface CodaliContextPackBuildResult { contextPack: CodaliContextPack; selectedEvidenceIds: string[]; droppedEvidenceIds: string[]; warnings: string[]; } export interface CodaliContextPackBuilderOptions { store: CodaliGatewayStore; maxDecisionFacts?: number; maxExcerptChars?: number; } export interface CodaliContextPackBuildAndPersistInput { runId: string; request?: CodaliGatewayRequest; verification?: CodaliGatewayVerificationLoopResult; maxContextPackTokens?: number; maxDecisionFacts?: number; maxExcerptChars?: number; } export declare const estimateCodaliContextPackTokens: (pack: CodaliContextPack) => number; export declare const buildCodaliContextPack: (input: CodaliContextPackBuilderInput) => CodaliContextPackBuildResult; export declare class CodaliContextPackBuilder { private readonly options; constructor(options: CodaliContextPackBuilderOptions); buildAndPersist(input: CodaliContextPackBuildAndPersistInput): Promise; } export declare const createCodaliContextPackBuilder: (options: CodaliContextPackBuilderOptions) => CodaliContextPackBuilder; //# sourceMappingURL=ContextPackBuilder.d.ts.map