import { PacketType } from "./PacketType.ts"; import type { ReasonCode } from "./ReasonCode.ts"; import type { AuthProperties } from "./Properties.ts"; import type { CodecOpts } from "./types.ts"; export type AuthPacketV5 = { type: PacketType; protocolLevel: 5; reasonCode: ReasonCode; properties?: AuthProperties; }; /** * An AUTH packet is sent from Client to Server or Server to Client as part of an extended * authentication exchange, such as challenge / response authentication. * It is a Protocol Error for the Client or Server to send an AUTH packet * if the CONNECT packet did not contain the same Authentication Method. */ export type AuthPacket = AuthPacketV5; export declare function encode(packet: AuthPacket, codecOpts: CodecOpts): Uint8Array; export declare function decode(buffer: Uint8Array, flags: number, codecOpts: CodecOpts, packetType: PacketType): AuthPacket; //# sourceMappingURL=auth.d.ts.map