import type { BinaryReader, BinaryWriter } from './core.js'; /** * Contains the unexpanded type URL and encoded bytes of a protobuf `Any`. * * This runtime shape does not unpack the nested message automatically. */ type AnyShape = { /** Identifies the encoded message type, usually with a `type.googleapis.com/` prefix. */ typeUrl: string; /** Contains the nested message in protobuf wire format. */ value: Uint8Array; }; export type { AnyShape }; /** * Creates an {@link AnyShape} from the runtime JSON form. * * `typeUrl` defaults to an empty string. `value` can be bytes or a Base64 * string and defaults to empty bytes. */ export declare function anyFromJSON(o: unknown): AnyShape; /** Converts an {@link AnyShape} to `{ typeUrl, value }` with Base64-encoded bytes. */ export declare function anyToJSON(a: AnyShape): any; /** Writes the fields of an {@link AnyShape} to a protobuf writer. */ export declare function writeAny(writer: BinaryWriter, a: AnyShape): void; /** * Reads one length-delimited {@link AnyShape} message body. * * `length` is the number of bytes in the message body, not the outer tag. * Unknown fields are skipped. */ export declare function readAny(reader: BinaryReader, length: number): AnyShape; //# sourceMappingURL=any.d.ts.map