import { AnyShape } from './any.js'; import { BinaryReader, BinaryWriter, dayjs, Dayjs, DeepPartial, Duration, Long, type MessageDescriptor, MessageFns } from './core.js'; declare function tsToWire(d: Dayjs): { seconds: Long; nanos: number; }; declare function tsFromWire(t: { seconds: Long | number | string; nanos: number; }): Dayjs; declare function durToWire(d: Duration): { seconds: Long; nanos: number; }; declare function durFromWire(t: { seconds: Long | number | string; nanos: number; }): Duration; declare function timestampReflect(value: unknown): Record | undefined; declare function durationReflect(value: unknown): Record | undefined; declare function valueReflect(value: unknown): Record | undefined; /** * Provides codecs and reflection descriptors for protobuf well-known types. * * Generated code uses these entries for timestamps, durations, field masks, * `Any`, `Struct`, `Value`, `ListValue`, and {@link Empty}. Timestamps use * Day.js values, durations use Day.js durations, field masks use `string[]`, * and structured values use normal JavaScript values. * * Application code normally calls the generated message functions that refer * to this registry instead of calling registry entries directly. */ export declare const wkt: { readonly ".google.protobuf.Timestamp": { readonly $type: "google.protobuf.Timestamp"; readonly $descriptor: { readonly reflect: typeof timestampReflect; readonly fields: { readonly seconds: { readonly pbName: "seconds"; readonly scalarType: 3; }; readonly nanos: { readonly pbName: "nanos"; readonly scalarType: 5; }; }; }; readonly fromJSON: (o: unknown, _use?: "json" | "pb") => dayjs.Dayjs; readonly toJSON: (d: Dayjs, use?: "json" | "pb") => string | { seconds: string; nanos: number; }; readonly toWire: typeof tsToWire; readonly fromWire: typeof tsFromWire; readonly fromPartial: (object: DeepPartial) => dayjs.Dayjs; readonly writeMessage: (writer: BinaryWriter, d: Dayjs) => void; readonly readMessage: (reader: BinaryReader, length: number) => Dayjs; }; readonly ".google.protobuf.Duration": { readonly $type: "google.protobuf.Duration"; readonly $descriptor: { readonly reflect: typeof durationReflect; readonly fields: { readonly seconds: { readonly pbName: "seconds"; readonly scalarType: 3; }; readonly nanos: { readonly pbName: "nanos"; readonly scalarType: 5; }; }; }; readonly fromJSON: (o: unknown, _use?: "json" | "pb") => import("dayjs/plugin/duration.js").Duration; readonly toJSON: (d: Duration, use?: "json" | "pb") => string | { seconds: string; nanos: number; }; readonly toWire: typeof durToWire; readonly fromWire: typeof durFromWire; readonly fromPartial: (object: DeepPartial) => import("dayjs/plugin/duration.js").Duration; readonly writeMessage: (writer: BinaryWriter, d: Duration) => void; readonly readMessage: (reader: BinaryReader, length: number) => Duration; }; readonly ".google.protobuf.FieldMask": { readonly $type: "google.protobuf.FieldMask"; readonly $descriptor: { readonly reflect: (value: unknown) => { paths: string[]; }; readonly fields: { readonly paths: { readonly pbName: "paths"; readonly repeated: true; readonly scalarType: 9; }; }; }; readonly fromJSON: (o: unknown, _use?: "json" | "pb") => string[]; readonly toJSON: (paths: string[], _use?: "json" | "pb") => string; readonly fromPartial: (object: DeepPartial) => string[]; readonly writeMessage: (writer: BinaryWriter, paths: string[]) => void; readonly readMessage: (reader: BinaryReader, length: number) => string[]; }; readonly ".google.protobuf.Any": { readonly $type: "google.protobuf.Any"; readonly $descriptor: { readonly fields: { readonly typeUrl: { readonly pbName: "type_url"; readonly scalarType: 9; }; readonly value: { readonly pbName: "value"; readonly scalarType: 12; }; }; }; readonly fromJSON: (o: unknown, _use?: "json" | "pb") => AnyShape; readonly toJSON: (a: AnyShape, _use?: "json" | "pb") => any; readonly fromPartial: (object: DeepPartial) => { typeUrl: string; value: Uint8Array; }; readonly writeMessage: (writer: BinaryWriter, a: AnyShape) => void; readonly readMessage: (reader: BinaryReader, length: number) => AnyShape; }; readonly ".google.protobuf.Struct": { readonly $type: "google.protobuf.Struct"; readonly $descriptor: { readonly reflect: (value: unknown) => { fields: {}; }; readonly fields: { readonly fields: { readonly pbName: "fields"; readonly map: true; readonly mapValue: () => MessageDescriptor | undefined; }; }; }; readonly fromJSON: (o: any, _use?: "json" | "pb") => any; readonly toJSON: (o: any, _use?: "json" | "pb") => any; readonly fromPartial: (object: any) => any; readonly writeMessage: (writer: BinaryWriter, obj: any) => void; readonly readMessage: (reader: BinaryReader, length: number) => any; }; readonly ".google.protobuf.Value": { readonly $type: "google.protobuf.Value"; readonly $descriptor: { readonly reflect: typeof valueReflect; readonly fields: { readonly kind: { readonly pbName: "kind"; readonly oneof: true; readonly message: () => MessageDescriptor; }; }; }; readonly fromJSON: (o: any, _use?: "json" | "pb") => any; readonly toJSON: (o: any, _use?: "json" | "pb") => any; readonly fromPartial: (object: any) => any; readonly writeMessage: (writer: BinaryWriter, v: any) => void; readonly readMessage: (reader: BinaryReader, length: number) => any; }; readonly ".google.protobuf.ListValue": { readonly $type: "google.protobuf.ListValue"; readonly $descriptor: { readonly reflect: (value: unknown) => { values: any[]; }; readonly fields: { readonly values: { readonly pbName: "values"; readonly repeated: true; readonly message: () => MessageDescriptor | undefined; }; }; }; readonly fromJSON: (o: any, _use?: "json" | "pb") => any[]; readonly toJSON: (o: any[], _use?: "json" | "pb") => any[]; readonly fromPartial: (object: any[]) => any[]; readonly writeMessage: (writer: BinaryWriter, arr: any[]) => void; readonly readMessage: (reader: BinaryReader, length: number) => any[]; }; readonly ".google.protobuf.Empty": { readonly $type: "google.protobuf.Empty"; readonly $descriptor: { readonly reflect: () => {}; readonly fields: {}; }; readonly fromJSON: (_o: any, _use?: "json" | "pb") => any; readonly toJSON: (_e: any, _use?: "json" | "pb") => any; readonly fromPartial: (_o: any) => any; readonly writeMessage: (_writer: BinaryWriter, _e: any) => void; readonly readMessage: (reader: BinaryReader, length: number) => any; }; }; /** Represents the complete built-in well-known-type registry. */ export type WktRegistry = typeof wkt; /** Represents `google.protobuf.Empty` as an object with no fields. */ export interface Empty { } /** * Provides the generated-message operations for `google.protobuf.Empty`. * * Decoding skips unknown fields, and construction always returns a new empty * object. */ export declare const Empty: MessageFns; export {}; //# sourceMappingURL=wkt.d.ts.map