import type { ClassicCommandHandler } from './classic-cli.js'; export interface ClassicCommandContext { invocationCwd: string; projectRoot: string; } export interface ClassicCommandContextOptions { invocationCwd?: string; projectRoot?: string; } export declare function withClassicCommandContext(options: ClassicCommandContextOptions, operation: (context: ClassicCommandContext) => Promise): Promise; export declare function classicCommandProjectRoot(): string; export declare function classicCommandInvocationCwd(): string; /** * Wraps a Classic command handler so its command context is always established * before the handler body runs. Handlers that need `classicCommandProjectRoot()` * or `classicCommandInvocationCwd()` must be exported through this wrapper instead * of calling `withClassicCommandContext` by hand, so a handler can never consume * the context without first establishing it. */ export declare function withProjectContext(handler: ClassicCommandHandler): ClassicCommandHandler; //# sourceMappingURL=classic-command-context.d.ts.map