export { evaluateNodeRuntime, evaluatePnpmRuntime } from '../runtime/policy.js'; type CliCommand = 'server' | 'setup-local' | 'setup' | 'extension' | 'doctor' | 'help' | 'version' | 'init'; export interface ParsedCliArgs { command: CliCommand; setupClient?: string; setupProfile?: string; extensionOpen?: boolean; extensionCopy?: string; doctorFix?: boolean; } export type DoctorInstallationMode = 'source-checkout' | 'installed-package' | 'production-runtime'; export interface LocalSetupInfo { packageName: string; packageVersion: string; packageRoot: string; installationMode?: DoctorInstallationMode; serverEntryPath: string; extensionPackagePath: string; extensionChecksumPath?: string; serverEntryExists: boolean; extensionPackageExists: boolean; extensionChecksumExists?: boolean; serverEntryValid?: boolean; extensionPackageValid?: boolean; artifactIssues?: string[]; } interface DoctorPortResult { port: number; reachable: boolean; } export interface VendorDoctorStatus { enabled: boolean; configured: boolean; mode: string; credentialStatus: 'not-required' | 'optional-present' | 'optional-missing' | 'present' | 'missing'; } export interface RemoteBackendDoctorStatus { backend: 'local_bridge' | 'remote_relay' | 'unknown'; transport: string; remoteSessionConfigured: boolean; oauthEnabled: boolean; httpAuthDisabled: boolean; warnings: string[]; } export interface UserServiceRuntimeStatus { applicable: boolean; installed: boolean; unitPath: string; execStart?: string; nodePath?: string; nodePathExists?: boolean; nodeVersion?: string | null; nodeSupported?: boolean; issues: string[]; } export interface DoctorReport { setup: LocalSetupInfo; installationMode?: DoctorInstallationMode; nodeVersion: string; nodeSupported: boolean; pnpmVersion: string | null; pnpmSupported: boolean; pnpmRequired?: boolean; userServiceRuntime?: UserServiceRuntimeStatus; envValid: boolean; envIssues: string[]; bridgeHost: string; bridgePorts: DoctorPortResult[]; toolCounts?: { profile: string; enabled: number; total: number; }; vendorsConfigured: Record; vendorDiagnostics?: Record; remoteBackend?: RemoteBackendDoctorStatus; } export interface CreateDoctorReportOptions { nodeEnv?: string; pnpmVersion?: string | null; } export declare function parseCliArgs(args: string[]): ParsedCliArgs; export declare function formatSetupLocalReport(setup?: LocalSetupInfo, nodeExecutablePath?: string): string; export interface PnpmVersionCommand { executable: string; args: string[]; } export declare function pnpmVersionCommandForPlatform(platform: NodeJS.Platform, comSpec?: string | undefined): PnpmVersionCommand; export declare function inspectUserServiceRuntime(options?: { platform?: NodeJS.Platform; unitPath?: string; unitText?: string | null; executableExists?: (path: string) => boolean; readNodeVersion?: (path: string) => Promise; }): Promise; export declare function createDoctorReport(packageRoot?: string, options?: CreateDoctorReportOptions): Promise; export declare function doctorExitCode(report: DoctorReport): 0 | 1; export declare function formatDoctorReport(report: DoctorReport, options?: { fix?: boolean; }): string; export declare function formatHelp(): string; export declare function formatVersion(packageRoot?: string): string;