/**
 * Encoding utilities for decimal serialization between TypeScript and Rust.
 *
 * SurrogateDecimal format: { flags, hi, lo, mid }
 *   - Produced by BulletWasm.convert_rust_decimal_to_json()
 *   - Matches rust_decimal's internal struct representation
 *   - Used by standard authenticator: SDK → json_to_borsh (client-side WASM) → Borsh bytes → /sequencer/txs
 *
 * AuthenticatedClient.encodeDecimal() selects the correct format automatically:
 *   - Standard auth (borsh): SurrogateDecimal { flags, hi, lo, mid }
 *   - Solana auth (serde): string (e.g. "10000")
 */
import type Decimal from "decimal.js";
/**
 * Converts a Decimal.js value to SurrogateDecimal format for Borsh serialization.
 * Used by standard authenticator where json_to_borsh parses this format client-side.
 *
 * @param d - The Decimal value to convert
 * @returns SurrogateDecimal object { flags, hi, lo, mid } or null
 */
export declare const decimalToSurrogate: (d?: Decimal | null) => any;
//# sourceMappingURL=encoding.d.ts.map