/** * Provider V2 Hook系统集成 * * 将独立Hook系统集成到Provider V2中,保持完全向后兼容 * 同时提供增强的快照和监控功能 */ import type { UnknownObject } from '../../../types/common-types.js'; interface LoggerModule { logModule: (moduleId: string, event: string, data?: UnknownObject) => void; } interface ModuleDependencies { logger?: LoggerModule; configEngine?: unknown; errorHandlingCenter?: unknown; debugCenter?: unknown; } interface HookSystemHealth { healthy: boolean; issues?: string[]; } interface LegacyCompatibilityManager { registerHook: (...args: unknown[]) => void; unregisterHook: (...args: unknown[]) => void; executeHookChain: (stage: unknown, target: unknown, data: unknown, context: unknown) => Promise<{ data: unknown; metrics: UnknownObject; }>; setDebugConfig: (config: UnknownObject) => void; } /** * Hook系统集成配置 */ interface HookSystemIntegrationConfig { enabled: boolean; debugMode: boolean; snapshotEnabled: boolean; migrationMode: boolean; } /** * Hook系统集成类 */ export declare class HookSystemIntegration { private config; private hooksSystem; private legacyManager; private dependencies; private providerId; constructor(dependencies: ModuleDependencies, providerId: string, config?: Partial); /** * 初始化Hook系统集成 */ initialize(): Promise; /** * 迁移现有的Provider V2 Hooks */ /** * 注册Provider特定的Hooks */ private registerProviderHooks; /** * 获取BidirectionalHookManager(保持API兼容) */ getBidirectionalHookManager(): LegacyCompatibilityManager; /** * 创建传统兼容管理器 */ private createLegacyCompatibilityManager; /** * 设置调试配置 */ setDebugConfig(config: unknown): void; /** * 获取Hook系统统计信息 */ getStats(): unknown; /** * 执行健康检查 */ healthCheck(): Promise; /** * 启动Hook系统 */ start(): Promise; /** * 停止Hook系统 */ stop(): Promise; /** * 关闭Hook系统 */ shutdown(): Promise; } /** * 创建Hook系统集成实例 */ export declare function createHookSystemIntegration(dependencies: ModuleDependencies, providerId: string, config?: Partial): HookSystemIntegration; /** * 默认集成配置 */ export declare const DEFAULT_INTEGRATION_CONFIG: HookSystemIntegrationConfig; export {};