ultimatepos/Modules/Communication/node_modules/@bufbuild/protobuf/dist/esm/create-registry.d.ts

14 lines
782 B
TypeScript

import type { MessageType } from "./message-type.js";
import type { EnumType } from "./enum.js";
import type { ServiceType } from "./service-type.js";
import type { IEnumTypeRegistry, IExtensionRegistry, IMessageTypeRegistry, IMutableRegistry, IServiceTypeRegistry } from "./type-registry.js";
import type { Extension } from "./extension.js";
/**
* Create a new registry from the given types.
*/
export declare function createRegistry(...types: Array<MessageType | EnumType | ServiceType | Extension>): IMessageTypeRegistry & IEnumTypeRegistry & IExtensionRegistry & IServiceTypeRegistry;
/**
* Create a mutable registry from the given types.
*/
export declare function createMutableRegistry(...types: Array<MessageType | EnumType | ServiceType | Extension>): IMutableRegistry;