/** * Packed protocol semver of the wire contract this port implements, * `pack(0, 11, 0)` per `core/binary_protocol/src/version.rs`. Bump together * with the Rust `IGGY_PROTOCOL_VERSION` on any wire-incompatible change. */ export declare const IGGY_PROTOCOL_VERSION: number; /** * `LoginRegisterRequest` body: * `[ClientVersionInfo][username len u8 + bytes][password len u8 + bytes] * [context len u32][context]`. */ export declare const serializeLoginRegister: (username: string, password: string, sdkVersion: string) => Buffer; /** `LoginRegisterWithPatRequest` body: the PAT takes the credential slot. */ export declare const serializeLoginRegisterWithPat: (token: string, sdkVersion: string) => Buffer; /** Decoded `LoginRegisterResponse`. */ export type LoginRegisterResponse = { userId: number; session: bigint; serverProtocolVersion: number; serverVersion: string; }; /** * `[user_id u32][session u64][server_protocol_version u32] * [server_version len u8 + bytes]`. */ export declare const deserializeLoginRegister: (body: Buffer) => LoginRegisterResponse; //# sourceMappingURL=register.d.ts.map