/**
 * Security Audit Tool
 *
 * Automated security auditing for Code Buddy deployments.
 * Identifies vulnerabilities, misconfigurations, and security risks.
 *
 * Inspired by OpenClaw's security audit system.
 */
export type AuditSeverity = 'critical' | 'high' | 'medium' | 'low' | 'info';
export type AuditCategory = 'authentication' | 'authorization' | 'network' | 'filesystem' | 'browser' | 'plugins' | 'channels' | 'tools' | 'credentials' | 'configuration';
export interface AuditFinding {
    id: string;
    category: AuditCategory;
    severity: AuditSeverity;
    title: string;
    description: string;
    impact: string;
    recommendation: string;
    details?: Record<string, unknown>;
}
export interface AuditResult {
    timestamp: Date;
    duration: number;
    findings: AuditFinding[];
    summary: {
        critical: number;
        high: number;
        medium: number;
        low: number;
        info: number;
        total: number;
    };
    passed: boolean;
    deepScan: boolean;
}
export interface SecurityAuditConfig {
    /** Code Buddy config path */
    configPath: string;
    /** Credentials path */
    credentialsPath: string;
    /** Plugins path */
    pluginsPath: string;
    /** Sessions path */
    sessionsPath: string;
    /** Check network bindings */
    checkNetwork: boolean;
    /** Check browser config */
    checkBrowser: boolean;
    /** Check file permissions */
    checkPermissions: boolean;
}
export declare const DEFAULT_SECURITY_AUDIT_CONFIG: SecurityAuditConfig;
export declare class SecurityAuditor {
    private config;
    private findings;
    private findingId;
    constructor(config?: Partial<SecurityAuditConfig>);
    /**
     * Run a full security audit
     */
    audit(deep?: boolean): Promise<AuditResult>;
    private checkAuthentication;
    private checkAuthorization;
    private checkCredentials;
    private checkFilePermissions;
    private checkConfiguration;
    private checkPlugins;
    private checkChannels;
    private checkTools;
    private checkNetwork;
    private checkBrowser;
    private deepScan;
    private addFinding;
    /**
     * Format audit result for console output
     */
    static formatResult(result: AuditResult): string;
}
export declare function getSecurityAuditor(config?: Partial<SecurityAuditConfig>): SecurityAuditor;
export declare function resetSecurityAuditor(): void;
export default SecurityAuditor;
