import type { CreateTunnelRequest } from '../../proto/api.ts';
import type { IAttestorClient, MakeTunnelFn } from '../../types/index.ts';
export type TCPTunnelCreateOpts = {
    /**
     * The tunnel ID to communicate with.
     */
    tunnelId: CreateTunnelRequest['id'];
    client: IAttestorClient;
};
/**
 * Makes a tunnel communication wrapper for a TCP tunnel.
 *
 * It listens for messages and disconnect events from the server,
 * and appropriately calls the `onMessage` and `onClose` callbacks.
 */
export declare const makeRpcTcpTunnel: MakeTunnelFn<TCPTunnelCreateOpts>;
