import * as plugins from '../../plugins.js'; import type { IRustCertificateStatus, IRustMetricsSnapshot, IRustProxyOptions, IRustRouteConfig, IRustStatistics } from './models/rust-types.js'; import type { ISmartProxySecurityPolicy } from './models/interfaces.js'; /** * Bridge between TypeScript SmartProxy and the Rust binary. * Wraps @push.rocks/smartrust's RustBridge with type-safe command definitions. */ export declare class RustProxyBridge extends plugins.EventEmitter { private bridge; constructor(); /** * Spawn the Rust binary in management mode. * Returns true if the binary was found and spawned successfully. */ spawn(): Promise; /** * Kill the Rust process and clean up. */ kill(): void; /** * Whether the bridge is currently running. */ get running(): boolean; startProxy(config: IRustProxyOptions): Promise; stopProxy(): Promise; updateRoutes(routes: IRustRouteConfig[]): Promise; setSecurityPolicy(policy: ISmartProxySecurityPolicy): Promise; getMetrics(): Promise; getStatistics(): Promise; provisionCertificate(routeName: string): Promise; renewCertificate(routeName: string): Promise; getCertificateStatus(routeName: string): Promise; getListeningPorts(): Promise; setSocketHandlerRelay(socketPath: string): Promise; addListeningPort(port: number): Promise; removeListeningPort(port: number): Promise; loadCertificate(domain: string, cert: string, key: string, ca?: string): Promise; setDatagramHandlerRelay(socketPath: string): Promise; }