import { SourceHit } from './ContextSource';
export declare function countTokens(text: string): number;
/**
 * Greedy pack `hits` (already sorted desc by score) until `budgetTokens`
 * is exhausted. Returns the kept hits and the actual token usage.
 */
export declare function pack(hits: SourceHit[], budgetTokens: number): {
    kept: SourceHit[];
    usedTokens: number;
};
