import type { Ad, NobleTypes } from "./types/types.js"; import { Buffer } from "node:buffer"; /** * Represents the advertising data parser for SwitchBot devices. */ export declare class Advertising { constructor(); /** * Parses the advertisement data coming from SwitchBot device. * * This function processes advertising packets received from SwitchBot devices * and extracts relevant information based on the device type. * * @param {NobleTypes['peripheral']} peripheral - The peripheral device object from noble. * @param {Function} emitLog - The function to emit log messages. * @returns {Promise} - An object containing parsed data specific to the SwitchBot device type, or `null` if the device is not recognized. */ static parse(peripheral: NobleTypes["peripheral"], emitLog: (level: string, message: string) => void): Promise; /** * Validates if the buffer is a valid Buffer object with a minimum length. * * @param {any} buffer - The buffer to validate. * @returns {boolean} - True if the buffer is valid, false otherwise. */ private static validateBuffer; /** * Parses the service data based on the device model. * * @param {string} model - The device model. * @param {Buffer} serviceData - The service data buffer. * @param {Buffer} manufacturerData - The manufacturer data buffer. * @param {Function} emitLog - The function to emit log messages. * @returns {Promise} - The parsed service data. */ static parseServiceData(model: string, serviceData: Buffer, manufacturerData: Buffer, emitLog: (level: string, message: string) => void): Promise; /** * Formats the address of the peripheral. * * @param {NobleTypes['peripheral']} peripheral - The peripheral device object from noble. * @returns {string} - The formatted address. */ private static formatAddress; } //# sourceMappingURL=advertising.d.ts.map