export type Address = string; export type BtcAddress = string; export type RevertOptions = { abortAddress?: Address; callOnRevert?: boolean; revertAddress?: BtcAddress; revertMessage?: Buffer | Uint8Array; }; export declare enum OpCode { Call = 2, Deposit = 0, DepositAndCall = 1, Invalid = 3 } export declare enum EncodingFormat { ABI = 0, CompactLong = 2, CompactShort = 1 } type Header = { encodingFmt: EncodingFormat; opCode: OpCode; }; type FieldsV0 = { payload: Buffer; receiver: Address; revertOptions: RevertOptions; }; /** * Encodes data for a Bitcoin transaction * @param receiver - The address of the receiver * @param payload - The payload to be sent * @param revertOptions - Revert options * @param opCode - The operation code (defaults to DepositAndCall) * @param encodingFormat - The encoding format (defaults to ABI) * @returns The encoded data as a hex string */ export declare const bitcoinEncode: (receiver: Address, payload: Buffer, revertOptions: RevertOptions, opCode?: OpCode, encodingFormat?: EncodingFormat) => string; export declare const encodeToBytes: (header: Header, fields: FieldsV0) => Uint8Array; export {};