import type { Socket } from 'socket.io';
import type { SocketResponse } from './SocketResponse';
/**
 * Executes one socket request and guarantees consistent error emission and cleanup.
 *
 * @private internal utility of `startRemoteServer`
 */
export declare function respondToSocketRequest<TPayload>(socket: Socket, createResponse: () => Promise<SocketResponse<TPayload>>): Promise<void>;
