import type { ByteSource, PartialDeep } from "protoscript"; import * as protoscript from "protoscript"; /** * `SourceContext` represents information about the source of a * protobuf element, like the file in which it is defined. */ export interface SourceContext { /** * The path-qualified name of the .proto file that contained the associated * protobuf element. For example: `"google/protobuf/source_context.proto"`. */ fileName: string; } export declare const SourceContext: { /** * Serializes SourceContext to protobuf. */ encode: (msg: PartialDeep) => Uint8Array; /** * Deserializes SourceContext from protobuf. */ decode: (bytes: ByteSource) => SourceContext; /** * Initializes SourceContext with all fields set to their default value. */ initialize: (msg?: Partial) => SourceContext; /** * @private */ _writeMessage: (msg: PartialDeep, writer: protoscript.BinaryWriter) => protoscript.BinaryWriter; /** * @private */ _readMessage: (msg: SourceContext, reader: protoscript.BinaryReader) => SourceContext; }; export declare const SourceContextJSON: { /** * Serializes SourceContext to JSON. */ encode: (msg: PartialDeep) => string; /** * Deserializes SourceContext from JSON. */ decode: (json: string) => SourceContext; /** * Initializes SourceContext with all fields set to their default value. */ initialize: (msg?: Partial) => SourceContext; /** * @private */ _writeMessage: (msg: PartialDeep) => Record; /** * @private */ _readMessage: (msg: SourceContext, json: any) => SourceContext; };