import type { Command } from "commander"; import { formatErrorMessage } from "../infra/errors.js"; export { formatErrorMessage }; type ManagerLookupResult = { manager: T | null; error?: string; }; export declare function withManager(params: { getManager: () => Promise>; onMissing: (error?: string) => void; run: (manager: T) => Promise; close: (manager: T) => Promise; onCloseError?: (err: unknown) => void; }): Promise; export declare function runCommandWithRuntime(runtime: { error: (message: string) => void; exit: (code: number) => void; }, action: () => Promise, onError?: (error: unknown) => void): Promise; export declare function resolveOptionFromCommand(command: Command | undefined, key: string): T | undefined;