import { SmartContractLib } from '../smartContractLib.js'; import { ByteString } from '../types/primitives.js'; /** * A reader to parse a ByteString buffer * @category Standard Contracts */ export declare class ByteStringReader extends SmartContractLib { buf: ByteString; pos: bigint; constructor(buf: ByteString); /** * Check if all have been read * @returns true if all have been read */ eof(): boolean; /** * read bytes which encoded with bitcoin [value-pushing words]{@link https://wiki.bitcoinsv.io/index.php/Opcodes_used_in_Bitcoin_Script} * @returns true if all have been read */ readBytes(): ByteString; /** * read a byte as boolean * @returns true if the read byte not equal to '00' */ readBool(): boolean; /** * read bytes as `readBytes` and convert it to a number with `byteString2Int` * @returns a number */ readVarint(): bigint; } //# sourceMappingURL=byteStringReader.d.ts.map