import { spawn } from "node:child_process"; export type ServeTunnelErrorCode = "HUMANISH_SERVE_TUNNEL_NOT_FOUND" | "HUMANISH_SERVE_TUNNEL_START_FAILED"; export declare class ServeTunnelError extends Error { readonly code: ServeTunnelErrorCode; constructor(code: ServeTunnelErrorCode, message: string); } export interface ServeTunnel { url: string; close(): Promise; } export interface StartNgrokTunnelOptions { port: number; domain?: string; oauthProvider?: "google"; oauthAllowEmails?: string[]; oauthAllowDomains?: string[]; timeoutMs?: number; spawnImpl?: typeof spawn; } export declare function startNgrokTunnel(options: StartNgrokTunnelOptions): Promise;