wireguard-client-wrapper
Version:
Crossplatform wrapper for wireguard client
13 lines (12 loc) • 556 B
TypeScript
import { WgStrategy, WgResponse } from './wgStrategy';
export declare class WgWindowsStrategy extends WgStrategy {
isInstalled(): Promise<boolean>;
getActiveDevice(): Promise<string | null>;
up(filePath: string): Promise<void>;
down(filePath: string): Promise<void>;
getNameFromPath(filePath: string): string;
status(device: string): Promise<boolean>;
generatePrivateKey(): Promise<string>;
getPublicKey(privateKey: string): Promise<string>;
protected exec(command: string, sudoPrompt?: boolean): Promise<WgResponse>;
}