/** * Budgeted agent context pack assembler (TRL-127). * * @module trellis/context * @see docs/specs/context-pack-v0.md */ import type { TrellisVcsEngine } from '../engine.js'; import type { ContextPack, ContextPackOptions } from './types.js'; export declare function estimateTokens(serialized: string): number; export declare function serializePack(pack: ContextPack): string; /** * Drop lowest-priority fields until estimatedTokens <= budget. * Priority (keep high → drop low): core → waiting → ac → milestone → * decisions → links → policyRefs → labels/long titles. */ export declare function clampPackToBudget(pack: ContextPack, budgetTokens: number): ContextPack; export declare function assembleContextPack(engine: TrellisVcsEngine, opts: ContextPackOptions): ContextPack; /** Compact markdown-ish text for hooks (same clamp — pack already budgeted). */ export declare function formatContextPackText(pack: ContextPack): string; //# sourceMappingURL=pack.d.ts.map