import { type ProgramIO } from '../cli-helpers.js'; /** The emit context shared by every plan subcommand: where and how to report. */ export interface PlanCommandContext { readonly io: ProgramIO; readonly command: string; readonly asJson: boolean | undefined; } export declare function isValidSessionId(value: string): boolean; /** * Resolve the session id for a plan subcommand: an explicit `--session-id` is * validated; otherwise the active session is read and validated defensively. On * any rejection the subcommand envelope is printed, the exit code set to 1 and * `null` returned so the caller can bail without touching the result path. */ export declare function resolveSessionId(ctx: PlanCommandContext, projectRoot: string, explicit: string | undefined): string | null; /** Resolve the project root: an explicit `--project`, else the discovered root. */ export declare function resolveProjectRoot(projectArg: string | undefined): string;