/**
 * 性能监控工具
 * 用于监控粘贴操作的性能表现
 */
interface PerformanceMetrics {
    startTime: number;
    endTime?: number;
    duration?: number;
    contentSize: number;
    contentType: 'text' | 'html' | 'files' | 'mixed';
    operationType: 'parse' | 'upload' | 'insert' | 'total';
}
declare class PerformanceMonitor {
    private metrics;
    private isEnabled;
    /**
     * 开始监控
     */
    startMonitoring(operationId: string, contentType: PerformanceMetrics['contentType'], contentSize: number): void;
    /**
     * 记录子操作开始
     */
    startSubOperation(operationId: string, subOperation: PerformanceMetrics['operationType']): void;
    /**
     * 记录子操作结束
     */
    endSubOperation(operationId: string, subOperation: PerformanceMetrics['operationType']): void;
    /**
     * 结束监控
     */
    endMonitoring(operationId: string): void;
    /**
     * 获取性能评级
     */
    private getPerformanceRating;
    /**
     * 格式化文件大小
     */
    private formatSize;
    /**
     * 获取操作名称
     */
    private getOperationName;
    /**
     * 启用/禁用监控
     */
    setEnabled(enabled: boolean): void;
    /**
     * 获取性能报告
     */
    getReport(): {
        totalOperations: number;
        averageDuration: number;
    };
}
export declare const performanceMonitor: PerformanceMonitor;
/**
 * 性能监控装饰器
 */
export declare const withPerformanceMonitoring: <T extends any[], R>(operationType: PerformanceMetrics['operationType'], fn: (...args: T) => Promise<R> | R) => (...args: T) => Promise<R>;
/**
 * 生成操作ID
 */
export declare const generateOperationId: () => string;
export {};
