// @generated by protoc-gen-es v2.6.0 with parameter "target=js+dts,import_extension=none,json_types=true"
// @generated from file runme/parser/v1/docresult.proto (package runme.parser.v1, syntax proto3)
/* eslint-disable */

import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";

/**
 * Describes the file runme/parser/v1/docresult.proto.
 */
export declare const file_runme_parser_v1_docresult: GenFile;

/**
 * @generated from message runme.parser.v1.DocResult
 */
export declare type DocResult = Message<"runme.parser.v1.DocResult"> & {
  /**
   * The unique ID of the file.
   *
   * @generated from field: string file_id = 1;
   */
  fileId: string;

  /**
   * The name of the file.
   *
   * @generated from field: string file_name = 2;
   */
  fileName: string;

  /**
   * The relevance score of the file.
   *
   * @generated from field: double score = 3;
   */
  score: number;

  /**
   * Link to display for this file
   *
   * TOO(jlewi): Should we include the file contents?
   *
   * @generated from field: string link = 4;
   */
  link: string;
};

/**
 * @generated from message runme.parser.v1.DocResult
 */
export declare type DocResultJson = {
  /**
   * The unique ID of the file.
   *
   * @generated from field: string file_id = 1;
   */
  fileId?: string;

  /**
   * The name of the file.
   *
   * @generated from field: string file_name = 2;
   */
  fileName?: string;

  /**
   * The relevance score of the file.
   *
   * @generated from field: double score = 3;
   */
  score?: number | "NaN" | "Infinity" | "-Infinity";

  /**
   * Link to display for this file
   *
   * TOO(jlewi): Should we include the file contents?
   *
   * @generated from field: string link = 4;
   */
  link?: string;
};

/**
 * Describes the message runme.parser.v1.DocResult.
 * Use `create(DocResultSchema)` to create a new message.
 */
export declare const DocResultSchema: GenMessage<DocResult, {jsonType: DocResultJson}>;
