export declare const COMPACTION_PROMPT = "You will be given a conversation history to summarize. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:\n\n1. Task Overview\n   The user's core request and success criteria\n   Any clarifications or constraints they specified\n\n2. Current State\n   What has been completed so far\n   Files created, modified, or analyzed (with paths if relevant)\n   Key outputs or artifacts produced\n\n3. Important Discoveries\n   Technical constraints or requirements uncovered\n   Decisions made and their rationale\n   Errors encountered and how they were resolved\n   What approaches were tried that didn't work (and why)\n\n4. Build Completion Status\n   CRITICAL: Clearly state the build's progress toward finalization:\n   - Were all requested features/changes implemented?\n   - Was `build_debug` called? Did it pass or fail?\n   - Were there any unresolved errors (TypeScript, runtime, build)?\n   - Were any APIs tested? Did they pass?\n   - Is the build ready for `build_finalize`, or are there remaining tasks?\n\n5. Next Steps\n   Be SPECIFIC about exactly what the resuming agent should do next.\n   If the build is complete and debug passed, the next step is: \"Call build_finalize to complete the build.\"\n   If there are remaining tasks, list them in priority order.\n   NEVER suggest \"ask the user what to work on next\" if there are clear remaining tasks or if the build is ready to finalize.\n\n6. Context to Preserve\n   User preferences or style requirements\n   Domain-specific details that aren't obvious\n   Any promises made to the user\n\nBe concise but complete\u2014err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task. The resuming agent should be able to take action immediately without asking the user for direction.\n\nOutput ONLY the summary content. No preamble, no wrapping tags.";
/**
 * Formats the conversation history into a user message for compaction.
 */
export declare function formatCompactionRequest(messagesJson: string): string;
/**
 * Wraps the generated summary with continuation context to help the model
 * understand it's resuming a previous session.
 */
export declare function formatSummaryMessage(summary: string): string;
//# sourceMappingURL=compaction.d.ts.map