import { ABIDecoder } from "../serializer/decoder.js"; import { ABIEncoder } from "../serializer/encoder.js"; import { ABISerializableObject } from "../serializer/serializable.js"; export type BytesType = Bytes | ArrayBufferView | ArrayBuffer | ArrayLike | string; type AnyBytes = BytesType | { array: Uint8Array; }; export type BytesEncoding = 'hex' | 'utf8'; export declare class Bytes implements ABISerializableObject { static abiName: string; static from(value: AnyBytes, encoding?: BytesEncoding): Bytes; static fromString(value: string, encoding?: BytesEncoding): Bytes; static fromABI(decoder: ABIDecoder): Bytes; static abiDefault(): Bytes; static equal(a: BytesType, b: BytesType): boolean; static random(length: number): Bytes; static isBytes(value: any): value is BytesType; array: Uint8Array; constructor(array?: Uint8Array); get length(): number; get hexString(): string; get utf8String(): string; append(other: AnyBytes): void; appending(other: AnyBytes): Bytes; zeropad(n: number, truncate?: boolean): void; zeropadded(n: number, truncate?: boolean): Bytes; dropFirst(n?: number): void; droppingFirst(n?: number): Bytes; copy(): Bytes; equals(other: AnyBytes): boolean; toString(encoding?: BytesEncoding): string; toABI(encoder: ABIEncoder): void; toJSON(): string; } export {}; //# sourceMappingURL=bytes.d.ts.map