wowok
Version:
Wowok Blockchain TypeScript API
27 lines (26 loc) • 1.31 kB
TypeScript
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } 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 { MessageType } from "@protobuf-ts/runtime";
export interface Timestamp {
seconds: bigint;
nanos: number;
}
declare class Timestamp$Type extends MessageType<Timestamp> {
constructor();
now(): Timestamp;
toDate(message: Timestamp): Date;
fromDate(date: Date): Timestamp;
internalJsonWrite(message: Timestamp, options: JsonWriteOptions): JsonValue;
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp;
create(value?: PartialMessage<Timestamp>): Timestamp;
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp;
internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
export declare const Timestamp: Timestamp$Type;
export {};