/** * Runestone Builder * * Minimal Runestone OP_RETURN encoder for single-edict rune transfers. * Encodes a Runestone message as an OP_RETURN output script. * * Protocol spec: https://docs.ordinals.com/runes.html */ /** * Encode a bigint as unsigned LEB128 bytes. */ export declare function encodeLEB128(value: bigint): Uint8Array; export interface RuneEdict { /** Rune ID block height (e.g., 840000) */ block: bigint; /** Rune ID transaction index within block */ txIndex: bigint; /** Amount of runes to transfer (in smallest unit) */ amount: bigint; /** Output index to send runes to */ outputIndex: number; } export interface RunestoneOptions { edict: RuneEdict; /** Output index for remaining rune balance (change pointer) */ changeOutput: number; } /** * Build a Runestone OP_RETURN script for a single-edict rune transfer. * Always includes an explicit change pointer to avoid burning remaining runes. */ export declare function buildRunestoneScript(options: RunestoneOptions): Uint8Array; /** * Parse a rune ID string (e.g., "840000:1") into block and tx components. */ export declare function parseRuneId(runeId: string): { block: bigint; txIndex: bigint; }; //# sourceMappingURL=runestone-builder.d.ts.map