import buffer from '@ohos.buffer'; declare class Op { fn: Function; len: number; val: Object; next?: Op; constructor(l9: Function, len: number, val: Object); } declare class States { head: Op; tail: Op; len: number; next?: States; constructor(writer: Writer); } declare class Writer { len: number; head: Op; tail: Op; states?: States; constructor(); alloc(size: number): Uint8Array | buffer.Buffer; static create(): Writer; _push(k9: Function, len: number, val: Object): this; uint32(value: number): this; int32(value: number): this; sint32(value: number): Writer; sint64(value: number): Writer; uint64(value: number): Writer; int64(value: number): Writer; bool(value: boolean): Writer; fixed32(value: number): Writer; sfixed32(value: number): Writer; fixed64(value: number): Writer; sfixed64(value: number): Writer; float(value: number): Writer; double(value: number): Writer; bytes(value: Uint8Array | string): Writer; string(value: string): this; fork(): this; reset(): this; ldelim(): this; finish(): Uint8Array | buffer.Buffer; } export default Writer; 