/** * Encodes a non-negative integer into Protobuf Variant format. * @param value - The non-negative integer to encode. * @returns A Uint8Array containing the Variant bytes. */ export declare function encodeVariant(value: number): Uint8Array; /** * Converts a non-negative integer (up to 32 bits) to a 4-byte Big Endian Uint8Array. * @param value - The number to convert. * @returns A 4-byte Uint8Array. */ export declare function uint32ToBigEndianBytes(value: number): Uint8Array; /** * Appends a uint32 index to a byte array (typically a SubnetID) to compute a derived ID. * This mimics the Go `ids.ID.Append(uint32)` logic used for bootstrap validator IDs. * @param baseIDBytes - The base ID bytes (e.g., SubnetID). * @param index - The uint32 index to append. * @returns The combined ID bytes. */ export declare function computeDerivedID(baseIDBytes: Uint8Array, index: number): Uint8Array; /** * Manually marshals the ConvertSubnetToL1TxData justification protobuf. * L1ValidatorRegistrationJustification { * oneof preimage { * // Field 1 * SubnetIDIndex convert_subnet_to_l1_tx_data = 1; * // Field 2 * bytes register_l1_validator_message = 2; * } * } * SubnetIDIndex { * bytes subnet_id = 1; // wire type 2 * uint32 index = 2; // wire type 0 (varint) * } * * @param subnetIDBytes - The raw bytes of the subnet ID. * @param index - The bootstrap index. * @returns The marshalled L1ValidatorRegistrationJustification bytes. */ export declare function marshalConvertSubnetToL1TxDataJustification(subnetIDBytes: Uint8Array, index: number): Uint8Array; /** * Marshals the payload bytes into a RegisterL1ValidatorMessage justification format. * This creates a protobuf-encoded field 2 (register_l1_validator_message) with the payload bytes. * * L1ValidatorRegistrationJustification { * oneof preimage { * // Field 1 * SubnetIDIndex convert_subnet_to_l1_tx_data = 1; * // Field 2 * bytes register_l1_validator_message = 2; * } * } * * @param payloadBytes - The payload bytes to marshal (RegisterL1ValidatorMessage bytes). * @returns The marshalled justification bytes with protobuf field tag and length. */ export declare function marshalRegisterL1ValidatorMessageJustification(payloadBytes: Uint8Array): Uint8Array; //# sourceMappingURL=utils.d.ts.map