import type { TunnelRegistration } from './tunnel-types.js'; export type BrokerRegisterInput = { brokerUrl: string; registrationSecret: string; gatewayVersion: string; platform: string; recoveryToken?: string; preferredSubdomain?: string; }; export declare class TunnelBrokerError extends Error { readonly status: number; constructor(status: number, message: string); } export declare class TunnelBrokerClient { private readonly baseUrl; constructor(baseUrl: string); private apiUrl; register(input: BrokerRegisterInput): Promise; heartbeat(tunnelId: string, tunnelToken: string): Promise; deregister(tunnelId: string, tunnelToken: string): Promise; } export declare function resolveBrokerApiBase(brokerUrl: string): string;