import * as ps_list0 from "ps-list"; //#region src/lib/OpenVpn.d.ts type Status = 'connecting' | 'connected' | 'disconnecting' | 'disconnected' | 'reconnecting' | 'stopped' | 'error' | 'auth' | 'auth_username' | 'auth_password' | 'auth_success' | 'auth_failed'; declare class OpenVpn { private configPath; private username?; private password?; private authPath?; private useAuthFile?; private customFlags?; private process?; private eventEmitter; private status; private tempDir?; private isTempConfig; constructor(options: { configPath: string; username?: string; password?: string; authPath?: string; useAuthFile?: boolean; customFlags?: string[]; }); static createFromConfig(options: { config: string; username?: string; password?: string; useAuthFile?: boolean; customFlags?: string[]; }): OpenVpn; private createAuthFile; on(event: 'status', listener: (status: Status) => void): void; on(event: 'log', listener: (log: string) => void): void; private getExecPath; private bootstrap; connect(showConsole?: boolean): Promise; disconnect(graceful?: boolean, timeoutMs?: number): Promise; /** * Manually clean up all temporary files and directories created by this instance * This method can be called even when the VPN is not connected */ cleanup(): void; private cleanupTempConfig; getProcesses(): Promise; killProcesses(graceful?: boolean, timeoutMs?: number): Promise; private handleLog; private handleChunk; private handleAuth; } //#endregion //#region src/utils/network.d.ts declare const detectVPNViaNetworkInterfaces: () => Promise; declare const isAnyOpenVpnInterfaceUp: () => Promise; //#endregion export { OpenVpn, type Status, detectVPNViaNetworkInterfaces, isAnyOpenVpnInterfaceUp };