export declare function setJsonMode(on: boolean): void; export declare function isJsonMode(): boolean; /** * Helper for handlers: scan args for output-mode flags. * --json → force JSON * --output text|json|auto → explicit mode * Returns true if an explicit flag was found (so the caller knows the * user/agent expressed an intent vs. relying on auto-detection). */ export declare function detectJsonModeFromArgs(args: readonly string[]): boolean; export declare function wasExplicitlySet(): boolean;