import { InitiateAddDeviceFlowResult } from '../interfaces/SyncTypes.mjs'; import type { QrCodeLib } from '../interfaces/QrCodeLib.mjs'; /** * Decodes the initiator data from a string or QR code. * @param initiatorData - The initiator data to decode. * @param initiatorDataType The type of the initiatorData, determines how it should be decoded * @param jsQr - The QR code decoder. * @param qrCodeLib - The extended QR code library with platform-specific image processing. * @returns A promise that resolves to the decoded initiator data. */ export declare const decodeInitiatorData: (initiatorData: string | Uint8Array | File, initiatorDataType: "text" | "qr", jsQr: typeof import("jsqr").default, qrCodeLib: QrCodeLib) => Promise; /** * Converts a JSONified Uint8Array to a Uint8Array. * A JSONified Uint8Array is the output of JSON.stringify on a Uint8Array. * Example: * JSON.stringify(new Uint8Array([123, 456])) looks like this: * '{"0":123,"1":200}' * @param jsonObj - The JSONified Uint8Array to convert. * @returns A Uint8Array containing the values of the JSONified Uint8Array. */ export declare const jsonifiedUint8ArraytoUint8Array: (jsonObj: Record) => Uint8Array; /** * Converts a JSON object to a record of Uint8Arrays. * @param jsonObj - The JSON object to convert. * @returns A record of Uint8Arrays. */ export declare const jsonToUint8Array: (jsonObj: Record>) => Record;