import { do as ContextEngine, uo as CompactResult } from "./types-CaqpvD9U.js";
import { u as MemoryPromptSectionParams } from "./memory-state-DXrRymLp.js";

//#region src/context-engine/delegate.d.ts
/**
 * Delegate a context-engine compaction request to OpenClaw's built-in runtime compaction path.
 *
 * This is the same bridge used by the legacy context engine. Third-party
 * engines can call it from their own `compact()` implementations when they do
 * not own the compaction algorithm but still need `/compact` and overflow
 * recovery to use the stock runtime behavior.
 *
 * Note: `compactionTarget` is part of the public `compact()` contract, but the
 * built-in runtime compaction path does not expose that knob. This helper
 * ignores it to preserve legacy behavior; engines that need target-specific
 * compaction should implement their own `compact()` algorithm.
 */
declare function delegateCompactionToRuntime(params: Parameters<ContextEngine["compact"]>[0]): Promise<CompactResult>;
declare function buildMemorySystemPromptAddition(params: MemoryPromptSectionParams): string | undefined;
/** Prepare memory state asynchronously, then render it without prompt-path I/O. */
declare function prepareMemorySystemPromptAddition(params: MemoryPromptSectionParams): Promise<string | undefined>;
//#endregion
export { delegateCompactionToRuntime as n, prepareMemorySystemPromptAddition as r, buildMemorySystemPromptAddition as t };