import type { CodecOpts, PacketId } from "./types.ts"; import type { ProtocolLevelNoV5 } from "./protocolLevels.ts"; import type { UnsubackProperties } from "./Properties.ts"; import type { ReasonCode } from "./ReasonCode.ts"; import { PacketType } from "./PacketType.ts"; export type UnsubackPacketV4 = { type: PacketType; protocolLevel: ProtocolLevelNoV5; id: PacketId; }; export type UnsubackPacketV5 = { type: PacketType; protocolLevel: 5; id: PacketId; properties: UnsubackProperties; reasonCodes: Array; }; /** * UnsubackPacket is sent by the server to the client to confirm receipt * of an UnsubscribePacket. */ export type UnsubackPacket = UnsubackPacketV4 | UnsubackPacketV5; export declare function encode(packet: UnsubackPacket, codecOpts: CodecOpts): Uint8Array; export declare function decode(buffer: Uint8Array, flags: number, codecOpts: CodecOpts, packetType: PacketType): UnsubackPacket; //# sourceMappingURL=unsuback.d.ts.map