wireguard-client-wrapper
Version:
Crossplatform wrapper for wireguard client
11 lines (10 loc) • 415 B
TypeScript
import { WgStrategy } from './wgStrategy';
export declare class WgLinuxStrategy extends WgStrategy {
isInstalled(): Promise<boolean>;
getActiveDevice(): Promise<string | null>;
up(filePath: string): Promise<void>;
down(filePath: string): Promise<void>;
status(device: string): Promise<boolean>;
generatePrivateKey(): Promise<string>;
getPublicKey(privateKey: string): Promise<string>;
}