export interface HandshakeCommand { kind: "hello" | "auth" | "select" | "client" | "maint_notifications" | "readonly" | "himport"; send: () => Promise; errorHandler?: (err: Error) => void; } export declare function connectHandler(self: any, flushOfflineQueue: () => void): () => Promise; export declare function closeHandler(self: any): () => void; export declare function errorHandler(self: any): (error: any) => void; export declare function readyHandler(self: any, flushOfflineQueue: () => void): () => void;