import type { ParsedPacket } from 'coap-packet'; export interface OscoreOptionFields { kid: Buffer | null; kidContext: Buffer | null; piv: Buffer | null; } /** * Extract the OSCORE option value from a parsed CoAP packet. * The OSCORE option has number 9. */ export declare function getOscoreOptionValue(packet: ParsedPacket): Buffer | null; /** * Parse an OSCORE option value into its constituent fields. * Follows RFC 8613 Section 6.1: * [flags_byte] [piv_bytes...] [kid_context_len] [kid_context_bytes...] [kid_bytes...] */ export declare function parseOscoreOption(value: Buffer): OscoreOptionFields; /** * Check if a parsed packet has an OSCORE option. */ export declare function hasOscoreOption(packet: ParsedPacket): boolean;