import type { ToolSession } from "."; /** * Resolve a write/edit target to its absolute filesystem path. * * In plan mode, transparently redirects targets whose basename matches the * plan file's basename (e.g. a bare `PLAN.md` or `./PLAN.md`) to the canonical * plan file location at `state.planFilePath`. This lets `write` and `edit` * accept the unqualified plan filename and have the change land at the * session-scoped `local://PLAN.md` artifact instead of a stray cwd-relative * file the plan-mode guard would otherwise reject. * * Outside plan mode (or when the basename does not match) this is a no-op. */ export declare function resolvePlanPath(session: ToolSession, targetPath: string): string; export declare function enforcePlanModeWrite(session: ToolSession, targetPath: string, options?: { move?: string; op?: "create" | "update" | "delete"; }): void;