import { type Hex, type LabelhashErrorType } from 'viem'; import { InvalidEncodedLabelError, InvalidLabelhashError } from '../../errors/utils.js'; export type DecodeLabelhashErrorType = InvalidEncodedLabelError; /** * Decodes an encoded labelhash * * @throws {DecodeLabelhashErrorType} * @param hash - Labelhash to decode * @returns {Hex} */ export declare function decodeLabelhash(hash: string): Hex; export type EncodeLabelhashErrorType = InvalidLabelhashError; /** * Encodes a labelhash * * @throws {EncodeLabelhashErrorType} * @param hash - Labelhash to encode * @throws {EncodeLabelhashErrorType} */ export declare function encodeLabelhash(hash: string): string; export declare function isEncodedLabelhash(hash: string): boolean; export type SaveLabelErrorType = LabelhashErrorType; /** * Saves a label to local storage (if available) * * @throws {SaveLabelErrorType} * @param label - Label to save */ export declare function saveLabel(label: string): string; export type SaveNameErrorType = SaveLabelErrorType; /** * Saves a name to local storage (if available) * * @throws {SaveNameErrorType} * @param name - Name to save */ export declare function saveName(name: string): void; export type CheckLabelErrorType = DecodeLabelhashErrorType; /** * Checks a label * * @throws {CheckLabelErrorType} * @param hash - Label to check */ export declare function checkLabel(hash: string): string; export declare function checkIsDecrypted(string: string | string[]): boolean; export type DecryptNameErrorType = CheckLabelErrorType; /** * Decrypts a name * * @throws {DecryptNameErrorType} * @param name - Name to decrypt */ export declare function decryptName(name: string): string; //# sourceMappingURL=labels.d.ts.map