// package: google.protobuf
// file: any.proto

import * as jspb from "../../index";

export class Any extends jspb.Message {
  getTypeUrl(): string;
  setTypeUrl(value: string): Any;

  getValue(): Uint8Array | string;
  getValue_asU8(): Uint8Array;
  getValue_asB64(): string;
  setValue(value: Uint8Array | string): Any;

  getTypeName(): string;
  pack(serialized: Uint8Array, name: string, typeUrlPrefix?: string): void;
  unpack<T extends jspb.Message>(deserialize: (packed: Uint8Array) => T, name: string): T | null;

  serializeBinary(): Uint8Array;
  toObject(includeInstance?: boolean): Any.AsObject;
  static toObject(includeInstance: boolean, msg: Any): Any.AsObject;
  static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
  static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
  static serializeBinaryToWriter(message: Any, writer: jspb.BinaryWriter): void;
  static deserializeBinary(bytes: Uint8Array): Any;
  static deserializeBinaryFromReader(message: Any, reader: jspb.BinaryReader): Any;
}

export namespace Any {
  export type AsObject = {
    typeUrl: string,
    value: Uint8Array | string,
  }
}
