UNPKG

wowok

Version:

Wowok Blockchain TypeScript API

30 lines (29 loc) 1.52 kB
import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import type { JsonValue } from "@protobuf-ts/runtime"; import type { JsonReadOptions } from "@protobuf-ts/runtime"; import type { JsonWriteOptions } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IMessageType } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; export interface Any { typeUrl: string; value: Uint8Array; } declare class Any$Type extends MessageType<Any> { constructor(); pack<T extends object>(message: T, type: IMessageType<T>): Any; unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T; contains(any: Any, type: IMessageType<any> | string): boolean; internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue; internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any; typeNameToUrl(name: string): string; typeUrlToName(url: string): string; create(value?: PartialMessage<Any>): Any; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Any): Any; internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } export declare const Any: Any$Type; export {};