/** Returns whether the tx digest is valid based on the serialization format */ export declare function isValidTransactionDigest(value: string): value is string; export declare const IOTA_ADDRESS_LENGTH = 32; export declare function isValidIotaAddress(value: string): value is string; export declare function isValidIotaObjectId(value: string): boolean; type StructTag = { address: string; module: string; name: string; typeParams: (string | StructTag)[]; }; export declare function parseStructTag(type: string): StructTag; export declare function normalizeStructTag(type: string | StructTag): string; /** * Normalize an IOTA address to ensure consistent format. * Perform the following operations: * 1. Make the address lower case * 2. Prepend `0x` if the string does not start with `0x`. * 3. Add more zeros if the length of the address(excluding `0x`) is less than `IOTA_ADDRESS_LENGTH` * * WARNING: if the address value itself starts with `0x`, e.g., `0x0x`, the default behavior * is to treat the first `0x` not as part of the address. The default behavior can be overridden by * setting `forceAdd0x` to true * * @param value The address to normalize * @param forceAdd0x Whether to add 0x prefix without removing any existing 0x prefixes * @param validate Whether to validate the return address * @returns The normalized address * @throws Error if flag `validate` enabled and the address contains invalid hex characters */ export declare function normalizeIotaAddress(value: string, forceAdd0x?: boolean, validate?: boolean): string; export declare function normalizeIotaObjectId(value: string, forceAdd0x?: boolean, validate?: boolean): string; export {}; //# sourceMappingURL=iota-types.d.ts.map