/**
 * AgentVault "doctor" command — diagnostic checks and plist fixer.
 *
 * Detects stale macOS LaunchAgent plist paths (common after pnpm updates)
 * and offers to install a stable wrapper script so future updates don't
 * break the gateway.
 *
 * Usage: npx @agentvault/agentvault doctor [--fix]
 */
export type CheckStatus = "pass" | "warn" | "fail" | "skip";
export interface CheckResult {
    name: string;
    status: CheckStatus;
    message: string;
}
export interface PlistInfo {
    plistPath: string;
    programArgs: string[];
    stalePaths: string[];
}
export interface PlistValidationResult {
    status: "ok" | "stale" | "missing" | "skip" | "already-fixed";
    plistPath?: string;
    stalePaths?: string[];
}
export declare function checkOpenClawInstalled(): CheckResult;
export declare function checkConfigExists(home: string): CheckResult;
export declare function checkAgentVaultChannel(config: any): CheckResult;
export declare function checkPluginsAllow(config: any): CheckResult;
export declare function checkPlist(): CheckResult;
export declare function checkGatewayPort(): CheckResult;
export declare function checkAgentDataDirs(config: any): CheckResult;
export declare function checkPm2Status(): CheckResult;
export declare function plistPath(): string;
export declare function parsePlist(plistFile: string): PlistInfo | null;
export declare function validatePlist(): PlistValidationResult;
export declare function applyPlistFix(info: PlistInfo): boolean;
export declare function runDoctorCommand(options?: {
    fix?: boolean;
}): Promise<void>;
//# sourceMappingURL=doctor.d.ts.map