wireguard-tools
Version:
The best way to interact with WireGuard from Node
14 lines (13 loc) • 453 B
TypeScript
interface Options {
/** Full, absolute path to file including file name and extension */
filePath: string;
}
/**
* Get a wireguard config file as a string
*/
export declare const getConfigStringFromFile: (opts: Options) => Promise<string>;
/**
* Get a wireguard config file as a parsed object
*/
export declare const getConfigObjectFromFile: (opts: Options) => Promise<Pick<import("..").WgConfigObject, "wgInterface" | "peers">>;
export {};