import WebSocket, { RawData } from 'ws'; declare function createAuctionWs(url: string, handlers?: { onOpen?: () => void; onMessage?: (msg: any) => void; onError?: (err: unknown) => void; onClose?: (code: number, reason: Buffer) => void; onParseError?: (err: unknown, rawData: RawData) => void; }, options?: { maxRetries?: number; }): { readonly socket: WebSocket | null; send(data: string | Buffer): boolean; close(code?: number, reason?: string): void; }; export { createAuctionWs };