import * as $protobuf from ".."; import { IDescriptorProto, IEnumDescriptorProto, IFieldDescriptorProto, IFileDescriptorSet, IMethodDescriptorProto, IOneofDescriptorProto, IServiceDescriptorProto } from "./descriptor.generated"; export * from "./descriptor.generated"; type DescriptorInput = T | $protobuf.Reader | Uint8Array; declare module ".." { namespace Root { /** Creates a root from a descriptor set. */ function fromDescriptor(descriptor: DescriptorInput): $protobuf.Root; } interface Root { /** Converts this root to a descriptor set. */ toDescriptor(edition?: string): $protobuf.Message & IFileDescriptorSet; } namespace Type { /** Creates a type from a descriptor. */ function fromDescriptor(descriptor: DescriptorInput, edition?: string, nested?: boolean): $protobuf.Type; } interface Type { /** Converts this type to a descriptor. */ toDescriptor(edition?: string): $protobuf.Message & IDescriptorProto; } namespace Field { /** Creates a field from a descriptor. */ function fromDescriptor(descriptor: DescriptorInput, edition?: string, nested?: boolean): $protobuf.Field; } interface Field { /** Converts this field to a descriptor. */ toDescriptor(edition?: string): $protobuf.Message & IFieldDescriptorProto; } namespace Enum { /** Creates an enum from a descriptor. */ function fromDescriptor(descriptor: DescriptorInput, edition?: string, nested?: boolean): $protobuf.Enum; } interface Enum { /** Converts this enum to a descriptor. */ toDescriptor(): $protobuf.Message & IEnumDescriptorProto; } namespace OneOf { /** Creates a oneof from a descriptor. */ function fromDescriptor(descriptor: DescriptorInput): $protobuf.OneOf; } interface OneOf { /** Converts this oneof to a descriptor. */ toDescriptor(): $protobuf.Message & IOneofDescriptorProto; } namespace Service { /** Creates a service from a descriptor. */ function fromDescriptor(descriptor: DescriptorInput, edition?: string, nested?: boolean): $protobuf.Service; } interface Service { /** Converts this service to a descriptor. */ toDescriptor(): $protobuf.Message & IServiceDescriptorProto; } namespace Method { /** Creates a method from a descriptor. */ function fromDescriptor(descriptor: DescriptorInput): $protobuf.Method; } interface Method { /** Converts this method to a descriptor. */ toDescriptor(): $protobuf.Message & IMethodDescriptorProto; } }