/** * Solana-specific converter functions for API response transformation */ export declare const apiToNumber: (value: unknown) => number; export declare const apiToBigInt: (value: unknown) => bigint | undefined; /** * Ensure value is a string */ export declare const ensureString: (value: unknown) => string; /** * Ensure value is a number */ export declare const ensureNumber: (value: unknown) => number; /** * Ensure value is a boolean */ export declare const ensureBoolean: (value: unknown) => boolean; /** * Convert base58 string to Uint8Array */ export declare const base58ToBytes: (value: unknown) => Uint8Array; /** * Convert base58 string to Uint8Array, returns undefined if invalid */ export declare const maybeBase58ToBytes: (value: unknown) => Uint8Array | undefined; /** * Convert Uint8Array to base58 string */ export declare const bytesToBase58: (bytes: Uint8Array) => string; /** * Convert base64 string to Uint8Array */ export declare const base64ToBytes: (value: unknown) => Uint8Array; /** * Convert base64 string to Uint8Array, returns undefined if invalid */ export declare const maybeBase64ToBytes: (value: unknown) => Uint8Array | undefined; /** * Convert Uint8Array to base64 string */ export declare const bytesToBase64: (bytes: Uint8Array) => string; /** * Normalize Solana public key (validate base58 and length = 32 bytes) */ export declare const normalizePubkey: (pubkey: unknown) => string; /** * Normalize Solana signature (validate base58) */ export declare const normalizeSignature: (signature: unknown) => string; /** * Decode Solana account data which can be in different formats * Handles both tuple format [data, encoding] and jsonParsed format */ export declare const decodeAccountData: (value: unknown) => Uint8Array | unknown; /** * Create a converter for nested objects */ export declare function createNestedConverter(codec: { create: (data: unknown) => T; }): (value: unknown) => T; /** * Create a converter for arrays of nested objects */ export declare function createArrayConverter(codec: { create: (data: unknown) => T; }): (value: unknown) => T[];