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

import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
import type { Message } from "@bufbuild/protobuf";
import type { Notebook, NotebookJson } from "../../parser/v1/parser_pb";
import type { CommandMode, CommandModeJson } from "../../runner/v1/runner_pb";
import type { UInt32ValueJson } from "@bufbuild/protobuf/wkt";

/**
 * Describes the file runme/notebook/v1alpha1/notebook.proto.
 */
export declare const file_runme_notebook_v1alpha1_notebook: GenFile;

/**
 * @generated from message runme.notebook.v1alpha1.ResolveNotebookRequest
 */
export declare type ResolveNotebookRequest = Message<"runme.notebook.v1alpha1.ResolveNotebookRequest"> & {
  /**
   * @generated from field: runme.parser.v1.Notebook notebook = 1;
   */
  notebook?: Notebook;

  /**
   * @generated from field: runme.runner.v1.CommandMode command_mode = 2;
   */
  commandMode: CommandMode;

  /**
   * @generated from field: google.protobuf.UInt32Value cell_index = 3;
   */
  cellIndex?: number;
};

/**
 * @generated from message runme.notebook.v1alpha1.ResolveNotebookRequest
 */
export declare type ResolveNotebookRequestJson = {
  /**
   * @generated from field: runme.parser.v1.Notebook notebook = 1;
   */
  notebook?: NotebookJson;

  /**
   * @generated from field: runme.runner.v1.CommandMode command_mode = 2;
   */
  commandMode?: CommandModeJson;

  /**
   * @generated from field: google.protobuf.UInt32Value cell_index = 3;
   */
  cellIndex?: UInt32ValueJson;
};

/**
 * Describes the message runme.notebook.v1alpha1.ResolveNotebookRequest.
 * Use `create(ResolveNotebookRequestSchema)` to create a new message.
 */
export declare const ResolveNotebookRequestSchema: GenMessage<ResolveNotebookRequest, {jsonType: ResolveNotebookRequestJson}>;

/**
 * @generated from message runme.notebook.v1alpha1.ResolveNotebookResponse
 */
export declare type ResolveNotebookResponse = Message<"runme.notebook.v1alpha1.ResolveNotebookResponse"> & {
  /**
   * @generated from field: string script = 1;
   */
  script: string;
};

/**
 * @generated from message runme.notebook.v1alpha1.ResolveNotebookResponse
 */
export declare type ResolveNotebookResponseJson = {
  /**
   * @generated from field: string script = 1;
   */
  script?: string;
};

/**
 * Describes the message runme.notebook.v1alpha1.ResolveNotebookResponse.
 * Use `create(ResolveNotebookResponseSchema)` to create a new message.
 */
export declare const ResolveNotebookResponseSchema: GenMessage<ResolveNotebookResponse, {jsonType: ResolveNotebookResponseJson}>;

/**
 * @generated from service runme.notebook.v1alpha1.NotebookService
 */
export declare const NotebookService: GenService<{
  /**
   * ResolveNotebook takes [runme.parser.v1.Notebook] and a cell index and
   * returns a script that runs the cell taking the whole notebook into account.
   *
   * @generated from rpc runme.notebook.v1alpha1.NotebookService.ResolveNotebook
   */
  resolveNotebook: {
    methodKind: "unary";
    input: typeof ResolveNotebookRequestSchema;
    output: typeof ResolveNotebookResponseSchema;
  },
}>;
