import type { ByteSource, PartialDeep } from "protoscript"; import * as protoscript from "protoscript"; /** * A generic empty message that you can re-use to avoid defining duplicated * empty messages in your APIs. A typical example is to use it as the request * or the response type of an API method. For instance: * * service Foo { * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); * } * */ export interface Empty { } export declare const Empty: { /** * Serializes Empty to protobuf. */ encode: (_msg?: PartialDeep) => Uint8Array; /** * Deserializes Empty from protobuf. */ decode: (_bytes?: ByteSource) => Empty; /** * Initializes Empty with all fields set to their default value. */ initialize: (msg?: Partial) => Empty; /** * @private */ _writeMessage: (_msg: PartialDeep, writer: protoscript.BinaryWriter) => protoscript.BinaryWriter; /** * @private */ _readMessage: (_msg: Empty, _reader: protoscript.BinaryReader) => Empty; }; export declare const EmptyJSON: { /** * Serializes Empty to JSON. */ encode: (_msg?: PartialDeep) => string; /** * Deserializes Empty from JSON. */ decode: (_json?: string) => Empty; /** * Initializes Empty with all fields set to their default value. */ initialize: (msg?: Partial) => Empty; /** * @private */ _writeMessage: (_msg: PartialDeep) => Record; /** * @private */ _readMessage: (msg: Empty, _json: any) => Empty; };