/** * The result envelopes `runAutoCompact` can return. * * Split out of `auto-compact-orchestrator.ts` (file-size cap campaign). The * orchestrator re-exports every name declared here, so existing importers keep * using `./auto-compact-orchestrator.js` unchanged. */ import { type AutoCompactResult, type CompactDispatchResult, type ConvergencePlan } from '../context/auto-compact-types.js'; import type { CompactTarget } from '../context/auto-compact-dispatcher.js'; import type { CompactRun } from './auto-compact-run-types.js'; /** No session is bound, so there is nothing to probe. */ export declare function noSessionResult(): AutoCompactResult; /** The envelope for a probe that did not cross the auto-fire threshold. */ export declare function skipResult(ctx: CompactRun): AutoCompactResult; /** * The envelope for a throw during preparation. It preserves the original error * contract: the caller gets the `AUTO_COMPACT_DISPATCH_FAILED` shape it already * handles, not a thrown exception and not a widened type. */ export declare function prepareFailureResult(ctx: CompactRun, error: unknown): AutoCompactResult; /** The envelope for a throw or a refusal during the IDE dispatch. */ export declare function dispatchFailureResult(ctx: CompactRun, attempt: { readonly checkpointPath: string; readonly plan: ConvergencePlan; readonly target: CompactTarget; }, error: unknown): AutoCompactResult; /** The envelope for a run that reached the dispatch phase. */ export declare function compactResult(ctx: CompactRun, attempt: { readonly checkpointPath: string; readonly plan: ConvergencePlan; readonly target: CompactTarget; readonly dispatch: CompactDispatchResult; }): AutoCompactResult;