/** * Utilities for connecting to the Wireguard demo server at demo.wireguard.com * * @since 1.0.0 */ import type * as CommandExecutor from "@effect/platform/CommandExecutor"; import type * as PlatformError from "@effect/platform/Error"; import type * as FileSystem from "@effect/platform/FileSystem"; import type * as Path from "@effect/platform/Path"; import * as InternetSchemas from "effect-schemas/Internet"; import type * as Cause from "effect/Cause"; import type * as ParseResult from "effect/ParseResult"; import type * as Scope from "effect/Scope"; import type * as WireguardControl from "./WireguardControl.ts"; import type * as WireguardErrors from "./WireguardErrors.ts"; import * as Socket from "@effect/platform/Socket"; import * as SocketServer from "@effect/platform/SocketServer"; import * as Effect from "effect/Effect"; import * as Schema from "effect/Schema"; import type * as WireguardInternetSchemas from "./InternetSchemas.ts"; import * as WireguardConfig from "./WireguardConfig.ts"; import * as WireguardKey from "./WireguardKey.ts"; declare const WireguardDemoServerSchema_base: Schema.transform, Schema.Struct<{ serverPort: typeof InternetSchemas.Port; serverPublicKey: Schema.brand, "WireguardKey">; yourWireguardAddress: typeof InternetSchemas.Address; }>>; /** * @since 1.0.0 * @category Schema */ export declare class WireguardDemoServerSchema extends WireguardDemoServerSchema_base { } /** * Creates a Wireguard configuration to connect to demo.wireguard.com. When * connected, you should be able to see the hidden page at 192.168.4.1 * * @since 1.0.0 * @see https://git.zx2c4.com/wireguard-tools/plain/contrib/ncat-client-server/client.sh */ export declare const requestWireguardDemoConfig: (connectOptions?: { port: number; host: string; }, { privateKey, publicKey }?: { readonly privateKey: WireguardKey.WireguardKey; readonly publicKey: WireguardKey.WireguardKey; }) => Effect.Effect; /** * Mock implementation of the Wireguard demo server at demo.wireguard.com * * @since 1.0.0 * @see https://git.zx2c4.com/wireguard-tools/plain/contrib/ncat-client-server/server.sh */ export declare const WireguardDemoServer: (options: { maxPeers?: number | undefined; serverEndpoint: Schema.Schema.Type; wireguardNetwork: Schema.Schema.Encoded; }) => Effect.Effect; export {}; //# sourceMappingURL=WireguardServer.d.ts.map