import type { EncodeOptions, QrCode, QrError, Result } from "../types/index.js"; /** * High-level API to encode data into a QrCode structure. */ /** * Encode input into a deterministic QR Code module matrix and metadata. * * @param input String or bytes to encode. * @param options Encoding options (mode, ECC, version, mask, charset, etc.). * @throws QrException when strict validation fails. */ export declare function encode(input: string | Uint8Array, options?: EncodeOptions): QrCode; /** * Safe variant of encode returning a Result object. */ /** * Safe variant of {@link encode}. Returns a Result instead of throwing. */ export declare function encodeSafe(input: string | Uint8Array, options?: EncodeOptions): Result;