the-wireguard-effect
Version:
Cross platform wireguard api client for nodejs built on wireguard-go with effect-ts
29 lines • 1.18 kB
TypeScript
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
import * as Path from "effect/Path";
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
import type * as _WireguardControl from "../WireguardControl.ts";
/**
* @since 1.0.0
* @category Constructors
*/
export declare const makeUserspaceLayer: Effect.Effect<_WireguardControl.WireguardControl, never, FileSystem.FileSystem>;
/**
* @since 1.0.0
* @category Constructors
*/
export declare const makeBundledWgQuickLayer: (options: {
sudo: boolean;
}) => Effect.Effect<_WireguardControl.WireguardControl, never, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path>;
/**
* @since 1.0.0
* @category Layers
*/
export declare const UserspaceLayer: Layer.Layer<_WireguardControl.WireguardControl, never, FileSystem.FileSystem>;
/**
* @since 1.0.0
* @category Layers
*/
export declare const BundledWgQuickLayer: Layer.Layer<_WireguardControl.WireguardControl, never, FileSystem.FileSystem | ChildProcessSpawner.ChildProcessSpawner | Path.Path>;
//# sourceMappingURL=wireguardControl.d.ts.map