/** * Validation utilities for IoTeX SDK */ /** * Validate IoTeX address (bech32 with "io" prefix) */ export declare function isValidIoAddress(address: string): boolean; /** * Validate Ethereum address */ export declare function isValidEthAddress(address: string): boolean; /** * Validate that address is either IoTeX or Ethereum format */ export declare function isValidAddress(address: string): boolean; /** * Validate BLS public key (96 bytes hex, 192 hex characters) */ export declare function isValidBLSPubKey(pubKey: string): boolean; /** * Validate amount (positive number) */ export declare function isValidAmount(amount: string): boolean; /** * Validate duration (positive integer) */ export declare function isValidDuration(duration: number): boolean; /** * Validate candidate name (alphanumeric, may include underscores and hyphens) */ export declare function isValidCandidateName(name: string): boolean; /** * Validate private key (64 hex characters, optionally with 0x prefix) */ export declare function isValidPrivateKey(key: string): boolean; /** * Validate and throw error if validation fails */ export declare function validateAddress(address: string, paramName?: string): void; export declare function validateAmount(amount: string, paramName?: string): void; export declare function validateDuration(duration: number, paramName?: string): void; export declare function validateCandidateName(name: string, paramName?: string): void; export declare function validateBLSPubKey(pubKey: string, paramName?: string): void; export declare function validatePrivateKey(key: string, paramName?: string): void; //# sourceMappingURL=validation.d.ts.map