import { ParsedOrsResult } from "./types.js"; /** * Parse an ORS OP_RETURN payload. * Format: magic(3) + version(1) + pubkey(32) + sig(64) + kind(1) + kind-specific data * Minimum length: 102 bytes (101-byte header + 1 byte minimum data) */ export declare function parseORSPayload(data: Uint8Array): ParsedOrsResult; export interface V1ChunkInfo { chunkNum: number; totalChunks?: number; bodySlice: Uint8Array; } /** * Parse a v1 chunk from raw OP_RETURN payload bytes (magic already detected). * * Chunk 0: ORS(3) + 0x01(1) + 0x00(1) + totalChunks(1) + bodySlice * Chunk N: ORS(3) + 0x01(1) + N(1) + bodySlice */ export declare function parseV1Chunk(data: Uint8Array): V1ChunkInfo | null; /** * Concatenate ordered body slices and parse the assembled body. * * body = pubkey(32) + sig(64) + kind(1) + kind_data * * Returns null if the assembled data is too short to be valid. */ export declare function assembleV1Body(slices: Uint8Array[]): { pubkey: Uint8Array; sig: Uint8Array; kind: number; kindData: Uint8Array; } | null; //# sourceMappingURL=decode.d.ts.map