export type HeadroomMode = 'balanced' | 'aggressive' | 'conservative'; export interface HeadroomResult { readonly compressed: boolean; readonly originalSize: number; readonly compressedSize: number; readonly compressionRatio: number; readonly mode: HeadroomMode; /** `'HEADROOM_UNAVAILABLE'` on fallback; `null` on success. */ readonly warning: string | null; /** Compressed prompt body. `null` if no compression happened. */ readonly compressedPrompt: string | null; /** Tokens saved (from the SDK). 0 on fallback. */ readonly tokensSaved: number; } /** * Compress a prompt via headroom-ai. The `fallback: true` option is * non-negotiable: if the proxy daemon is unavailable, the SDK returns * `result.compressed = false` and the original messages; we surface * that as `HEADROOM_UNAVAILABLE` warning + G7 metadata-only fallback. */ export declare function compressPrompt(prompt: string, mode?: HeadroomMode): Promise; /** * Bridge interface: when `--use-headroom` is set, share entries written * via `peaks sub-agent share` MAY also flow through headroom's * `SharedContext`. Slice #010 implements a peak-internal shared channel * (see `shared-channel.ts`); the headroom-side `SharedContext` is a * separate concept that future slices can layer on. For now this * function is a stub that returns the peak-internal channel ID, which * is enough to demonstrate the bridge contract. */ export declare function buildSharedContextBridge(batchId: string): { peakChannelId: string; headroomContextId: string; };