import type { TAuthenticationResult, TPacketType } from "./types.ts";
/**
 * ConnackPacket is sent from the server to the client in response to a connect packet.
 * It indicates that the connect is accepted.
 */
export type ConnackPacket = {
    type: TPacketType;
    sessionPresent: boolean;
    returnCode: TAuthenticationResult;
};
export declare const connack: {
    encode(packet: ConnackPacket): {
        flags: number;
        bytes: number[];
    };
    decode(buffer: Uint8Array, _flags: number): ConnackPacket | undefined;
};
//# sourceMappingURL=connack.d.ts.map