import type { Config } from '../config/schema.js';
type TunnelEventSink = {
    emit(type: string, payload: unknown): void;
};
/** Publish `tunnel.status` on gateway SSE when tunnel lifecycle changes. */
export declare function wireTunnelEventsToGateway(service: TunnelEventSink): void;
export type ConfigureTunnelFromGatewayConfigOptions = {
    force?: boolean;
    deferWellKnownFetch?: boolean;
};
export declare function configureTunnelFromGatewayConfig(config: Config, opts?: ConfigureTunnelFromGatewayConfigOptions): Promise<void>;
export declare function maybeAutoStartTunnelFromConfig(config: Config, gatewayToken: string | undefined): Promise<void>;
export {};
