/** * Resolve the model-declared intent for the current tool call. Three-source * precedence: * * 1. `# intent: X` comment on the first line of the bash command. * 2. `description` field on the tool input (Claude Code only). * 3. `...` tag in the most-recent assistant prose, read * from `.harnery/.last-intent.` (the bash bash-tap is the * only thing that does transcript scanning today; agent-hook stamps the * file on precedence 1/2 so the bash-tap can fall back to it). * * Phase 8 (2026-05-27): agent-hook writes the stamp file itself on precedence * 1/2 (replacing coord-intent-stamp.sh's command/description branches). The * transcript-tag branch is now the only thing left in coord-intent-stamp.sh. */ export declare function resolveIntent(opts: { coordRoot: string; instanceId: string; /** First-line `# intent: X` comment from the bash command (preferred fresh source). */ commandIntentComment?: string; /** `description` field on the tool input (Claude Code only). */ description?: string; }): { intent: string; source: "command-comment" | "description" | "stamp" | "none"; }; /** * Match `# intent: X` at the start of a command (after optional leading * whitespace on the first line). Mirrors `extract_command_intent_comment` in * coord-intent-stamp.sh. */ export declare function extractIntentComment(command: string | undefined): string | undefined; //# sourceMappingURL=intent.d.ts.map