import type { IdMessageBase } from './messages/all-messages';
import type { Socket } from './net';
/**
 * Produce a new name for an unnamed socket connection
 */
export declare function getUnnamedSocketName(c: Socket): string;
/**
 * Sends a message to the given socket
 */
export declare function sendMessage<T extends IdMessageBase>(c: Socket, message: T): void;
