import type { Context } from "../context.ts";
import { type PubrelPacket } from "../deps.ts";
/**
 * Handles a PUBREL packet in the MQTT QoS 2 flow
 * It is the third packet of the QoS 2 protocol exchange
 * and a response to the PUBREC packet
 *
 * It uses Method A from the MQTT specification
 * @param ctx - The MQTT client context
 * @param packet - The PUBREL packet received
 * @description
 * When a PUBREL packet is received:
 * 1. If there is a matching pending incoming message:
 *    - Delivers the stored message to the application
 *    - Removes the message from pending incoming store
 *    - Sends PUBCOMP packet as acknowledgement
 * 2. If no matching message found, silently ignores
 */
export declare function handlePubrel(ctx: Context, packet: PubrelPacket): Promise<void>;
//# sourceMappingURL=handlePubrel.d.ts.map