import type { BinaryReader } from './binary_reader'; import type { BinaryWriter } from './binary_writer'; export interface ClientHelloParams { database: string; username: string; password: string; } export interface ServerHello { serverName: string; versionMajor: number; versionMinor: number; revision: number; timezone: string; displayName: string; } export interface ServerException { code: number; name: string; message: string; stackTrace: string; nested?: ServerException; } export declare function writeClientHello(writer: BinaryWriter, params: ClientHelloParams): void; /** * Write the client addendum that must be sent after receiving the Server Hello * on newer protocol revisions. This includes chunked protocol negotiation. */ export declare function writeClientAddendum(writer: BinaryWriter): void; export declare function readServerHello(reader: BinaryReader): ServerHello; export declare function readServerException(reader: BinaryReader, depth?: number): ServerException;