export interface TunnelStatus {
    running: boolean;
    url: string | null;
    binaryFound: boolean;
    binaryPath: string | null;
    lastError: string | null;
    startedAt: number | null;
}
export declare function findCloudflared(): string | null;
export declare function getTunnelStatus(): TunnelStatus;
/**
 * Start a cloudflared quick tunnel pointing at the given local port. Idempotent
 * — if a tunnel is already running, returns immediately. The function resolves
 * as soon as the child is spawned; the URL is captured asynchronously from
 * stderr and made available via getTunnelStatus().
 *
 * Throws if cloudflared isn't installed (so the caller can surface the install
 * hint to the operator).
 */
export declare function startTunnel(localPort: number): void;
export declare function stopTunnel(): void;
export declare function getCurrentTunnelUrl(): string | null;
//# sourceMappingURL=tunnel.d.ts.map