elearning/Frontend-Learner/node_modules/untun/dist/index.d.mts

16 lines
419 B
TypeScript
Raw Normal View History

2026-01-13 10:46:40 +07:00
interface TunnelOptions {
url?: string;
port?: number | string;
hostname?: string;
protocol?: "http" | "https";
verifyTLS?: boolean;
acceptCloudflareNotice?: boolean;
}
interface Tunnel {
getURL: () => Promise<string>;
close: () => Promise<void>;
}
declare function startTunnel(opts: TunnelOptions): Promise<undefined | Tunnel>;
export { type Tunnel, type TunnelOptions, startTunnel };