/* eslint-disable */
// @generated by protobuf-ts 2.11.1 with parameter output_javascript,optimize_code_size,long_type_string,add_pb_suffix,ts_nocheck,eslint_disable
// @generated from protobuf file "runme/parser/v1/parser.proto" (package "runme.parser.v1", syntax proto3)
// tslint:disable
// @ts-nocheck
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
import { DocResult } from "./docresult_pb";
import { BoolValue } from "../../../google/protobuf/wrappers_pb";
import { UInt32Value } from "../../../google/protobuf/wrappers_pb";
import { Int64Value } from "../../../google/protobuf/wrappers_pb";
/**
 * @generated from protobuf message runme.parser.v1.Notebook
 */
export interface Notebook {
    /**
     * @generated from protobuf field: repeated runme.parser.v1.Cell cells = 1
     */
    cells: Cell[];
    /**
     * @generated from protobuf field: map<string, string> metadata = 2
     */
    metadata: {
        [key: string]: string;
    };
    /**
     * @generated from protobuf field: runme.parser.v1.Frontmatter frontmatter = 3
     */
    frontmatter?: Frontmatter;
}
/**
 * @generated from protobuf message runme.parser.v1.ExecutionSummaryTiming
 */
export interface ExecutionSummaryTiming {
    /**
     * @generated from protobuf field: google.protobuf.Int64Value start_time = 1
     */
    startTime?: Int64Value;
    /**
     * @generated from protobuf field: google.protobuf.Int64Value end_time = 2
     */
    endTime?: Int64Value;
}
/**
 * @generated from protobuf message runme.parser.v1.CellOutputItem
 */
export interface CellOutputItem {
    /**
     * @generated from protobuf field: bytes data = 1
     */
    data: Uint8Array;
    /**
     * @generated from protobuf field: string type = 2
     */
    type: string;
    /**
     * @generated from protobuf field: string mime = 3
     */
    mime: string;
}
/**
 * @generated from protobuf message runme.parser.v1.ProcessInfoExitReason
 */
export interface ProcessInfoExitReason {
    /**
     * @generated from protobuf field: string type = 1
     */
    type: string;
    /**
     * @generated from protobuf field: google.protobuf.UInt32Value code = 2
     */
    code?: UInt32Value;
}
/**
 * @generated from protobuf message runme.parser.v1.CellOutputProcessInfo
 */
export interface CellOutputProcessInfo {
    /**
     * @generated from protobuf field: runme.parser.v1.ProcessInfoExitReason exit_reason = 1
     */
    exitReason?: ProcessInfoExitReason;
    /**
     * @generated from protobuf field: google.protobuf.Int64Value pid = 2
     */
    pid?: Int64Value;
}
/**
 * @generated from protobuf message runme.parser.v1.CellOutput
 */
export interface CellOutput {
    /**
     * @generated from protobuf field: repeated runme.parser.v1.CellOutputItem items = 1
     */
    items: CellOutputItem[];
    /**
     * @generated from protobuf field: map<string, string> metadata = 2
     */
    metadata: {
        [key: string]: string;
    };
    /**
     * @generated from protobuf field: runme.parser.v1.CellOutputProcessInfo process_info = 3
     */
    processInfo?: CellOutputProcessInfo;
}
/**
 * @generated from protobuf message runme.parser.v1.CellExecutionSummary
 */
export interface CellExecutionSummary {
    /**
     * @generated from protobuf field: google.protobuf.UInt32Value execution_order = 1
     */
    executionOrder?: UInt32Value;
    /**
     * @generated from protobuf field: google.protobuf.BoolValue success = 2
     */
    success?: BoolValue;
    /**
     * @generated from protobuf field: runme.parser.v1.ExecutionSummaryTiming timing = 3
     */
    timing?: ExecutionSummaryTiming;
}
/**
 * @generated from protobuf message runme.parser.v1.TextRange
 */
export interface TextRange {
    /**
     * @generated from protobuf field: uint32 start = 1
     */
    start: number;
    /**
     * @generated from protobuf field: uint32 end = 2
     */
    end: number;
}
/**
 * @generated from protobuf message runme.parser.v1.Cell
 */
export interface Cell {
    /**
     * CellKind is the type of cell, e.g. markup or code.
     *
     * @generated from protobuf field: runme.parser.v1.CellKind kind = 1
     */
    kind: CellKind;
    /**
     * Value is the contents of the cell.
     *
     * @generated from protobuf field: string value = 2
     */
    value: string;
    /**
     * LanguageID is the language of the cell.
     *
     * @generated from protobuf field: string language_id = 3
     */
    languageId: string;
    /**
     * Metadata is additional metadata about the cell in k/v format.
     *
     * @generated from protobuf field: map<string, string> metadata = 4
     */
    metadata: {
        [key: string]: string;
    };
    /**
     * TextRange is the range of the cell covering in the markdown source.
     *
     * @generated from protobuf field: runme.parser.v1.TextRange text_range = 5
     */
    textRange?: TextRange;
    /**
     * Outputs are the outputs of the cell, e.g. stdout, stderr, or other media types.
     *
     * @generated from protobuf field: repeated runme.parser.v1.CellOutput outputs = 6
     */
    outputs: CellOutput[];
    /**
     * ExecutionSummary is the summary of the cell execution, e.g. success/failure and execution time.
     *
     * @generated from protobuf field: runme.parser.v1.CellExecutionSummary execution_summary = 7
     */
    executionSummary?: CellExecutionSummary;
    /**
     * RefID is the agent's original unique identifier.
     *
     * @generated from protobuf field: string ref_id = 100
     */
    refId: string;
    /**
     * Role is the role of the cell, e.g. user or assistant.
     *
     * @generated from protobuf field: runme.parser.v1.CellRole role = 101
     */
    role: CellRole;
    /**
     * CallID is the unique identifier of the cell call.
     *
     * @generated from protobuf field: string call_id = 102
     */
    callId: string;
    /**
     * DocResults are doc results for a cell returned by, e.g., file search
     *
     * @generated from protobuf field: repeated runme.parser.v1.DocResult doc_results = 103
     */
    docResults: DocResult[];
}
/**
 * @generated from protobuf message runme.parser.v1.RunmeSessionDocument
 */
export interface RunmeSessionDocument {
    /**
     * @generated from protobuf field: string relative_path = 1
     */
    relativePath: string;
}
/**
 * @generated from protobuf message runme.parser.v1.RunmeSession
 */
export interface RunmeSession {
    /**
     * @generated from protobuf field: string id = 1
     */
    id: string;
    /**
     * @generated from protobuf field: runme.parser.v1.RunmeSessionDocument document = 2
     */
    document?: RunmeSessionDocument;
}
/**
 * @generated from protobuf message runme.parser.v1.FrontmatterRunme
 */
export interface FrontmatterRunme {
    /**
     * @generated from protobuf field: string id = 1
     */
    id: string;
    /**
     * @generated from protobuf field: string version = 2
     */
    version: string;
    /**
     * @generated from protobuf field: runme.parser.v1.RunmeSession session = 3
     */
    session?: RunmeSession;
}
/**
 * @generated from protobuf message runme.parser.v1.Frontmatter
 */
export interface Frontmatter {
    /**
     * @generated from protobuf field: string shell = 1
     */
    shell: string;
    /**
     * @generated from protobuf field: string cwd = 2
     */
    cwd: string;
    /**
     * @generated from protobuf field: bool skip_prompts = 3
     */
    skipPrompts: boolean;
    /**
     * @generated from protobuf field: runme.parser.v1.FrontmatterRunme runme = 4
     */
    runme?: FrontmatterRunme;
    /**
     * Deprecated category in favor of Tag
     *
     * @generated from protobuf field: string category = 5
     */
    category: string;
    /**
     * @generated from protobuf field: string terminal_rows = 6
     */
    terminalRows: string;
    /**
     * @generated from protobuf field: string tag = 7
     */
    tag: string;
}
/**
 * @generated from protobuf message runme.parser.v1.DeserializeRequestOptions
 */
export interface DeserializeRequestOptions {
    /**
     * @generated from protobuf field: runme.parser.v1.RunmeIdentity identity = 1
     */
    identity: RunmeIdentity;
}
/**
 * @generated from protobuf message runme.parser.v1.DeserializeRequest
 */
export interface DeserializeRequest {
    /**
     * @generated from protobuf field: bytes source = 1
     */
    source: Uint8Array;
    /**
     * @generated from protobuf field: runme.parser.v1.DeserializeRequestOptions options = 2
     */
    options?: DeserializeRequestOptions;
}
/**
 * @generated from protobuf message runme.parser.v1.DeserializeResponse
 */
export interface DeserializeResponse {
    /**
     * @generated from protobuf field: runme.parser.v1.Notebook notebook = 1
     */
    notebook?: Notebook;
}
/**
 * @generated from protobuf message runme.parser.v1.SerializeRequestOutputOptions
 */
export interface SerializeRequestOutputOptions {
    /**
     * @generated from protobuf field: bool enabled = 1
     */
    enabled: boolean;
    /**
     * @generated from protobuf field: bool summary = 2
     */
    summary: boolean;
}
/**
 * @generated from protobuf message runme.parser.v1.SerializeRequestOptions
 */
export interface SerializeRequestOptions {
    /**
     * @generated from protobuf field: runme.parser.v1.SerializeRequestOutputOptions outputs = 1
     */
    outputs?: SerializeRequestOutputOptions;
    /**
     * @generated from protobuf field: runme.parser.v1.RunmeSession session = 2
     */
    session?: RunmeSession;
}
/**
 * @generated from protobuf message runme.parser.v1.SerializeRequest
 */
export interface SerializeRequest {
    /**
     * @generated from protobuf field: runme.parser.v1.Notebook notebook = 1
     */
    notebook?: Notebook;
    /**
     * @generated from protobuf field: runme.parser.v1.SerializeRequestOptions options = 2
     */
    options?: SerializeRequestOptions;
}
/**
 * @generated from protobuf message runme.parser.v1.SerializeResponse
 */
export interface SerializeResponse {
    /**
     * @generated from protobuf field: bytes result = 1
     */
    result: Uint8Array;
}
/**
 * @generated from protobuf enum runme.parser.v1.CellKind
 */
export declare enum CellKind {
    /**
     * @generated from protobuf enum value: CELL_KIND_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * @generated from protobuf enum value: CELL_KIND_MARKUP = 1;
     */
    MARKUP = 1,
    /**
     * @generated from protobuf enum value: CELL_KIND_CODE = 2;
     */
    CODE = 2,
    /**
     * todo(sebastian): is this needed?
     *
     * @generated from protobuf enum value: CELL_KIND_DOC_RESULTS = 3;
     */
    DOC_RESULTS = 3
}
/**
 * @generated from protobuf enum runme.parser.v1.CellRole
 */
export declare enum CellRole {
    /**
     * @generated from protobuf enum value: CELL_ROLE_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * @generated from protobuf enum value: CELL_ROLE_USER = 1;
     */
    USER = 1,
    /**
     * @generated from protobuf enum value: CELL_ROLE_ASSISTANT = 2;
     */
    ASSISTANT = 2
}
/**
 * RunmeIdentity controls if unique identifiers are inserted if not present.
 *
 * @generated from protobuf enum runme.parser.v1.RunmeIdentity
 */
export declare enum RunmeIdentity {
    /**
     * aka NONE
     *
     * @generated from protobuf enum value: RUNME_IDENTITY_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * @generated from protobuf enum value: RUNME_IDENTITY_ALL = 1;
     */
    ALL = 1,
    /**
     * @generated from protobuf enum value: RUNME_IDENTITY_DOCUMENT = 2;
     */
    DOCUMENT = 2,
    /**
     * @generated from protobuf enum value: RUNME_IDENTITY_CELL = 3;
     */
    CELL = 3
}
declare class Notebook$Type extends MessageType<Notebook> {
    constructor();
    create(value?: PartialMessage<Notebook>): Notebook;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Notebook): Notebook;
    private binaryReadMap2;
    internalBinaryWrite(message: Notebook, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.Notebook
 */
export declare const Notebook: Notebook$Type;
declare class ExecutionSummaryTiming$Type extends MessageType<ExecutionSummaryTiming> {
    constructor();
    create(value?: PartialMessage<ExecutionSummaryTiming>): ExecutionSummaryTiming;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExecutionSummaryTiming): ExecutionSummaryTiming;
    internalBinaryWrite(message: ExecutionSummaryTiming, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.ExecutionSummaryTiming
 */
export declare const ExecutionSummaryTiming: ExecutionSummaryTiming$Type;
declare class CellOutputItem$Type extends MessageType<CellOutputItem> {
    constructor();
    create(value?: PartialMessage<CellOutputItem>): CellOutputItem;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CellOutputItem): CellOutputItem;
    internalBinaryWrite(message: CellOutputItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.CellOutputItem
 */
export declare const CellOutputItem: CellOutputItem$Type;
declare class ProcessInfoExitReason$Type extends MessageType<ProcessInfoExitReason> {
    constructor();
    create(value?: PartialMessage<ProcessInfoExitReason>): ProcessInfoExitReason;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProcessInfoExitReason): ProcessInfoExitReason;
    internalBinaryWrite(message: ProcessInfoExitReason, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.ProcessInfoExitReason
 */
export declare const ProcessInfoExitReason: ProcessInfoExitReason$Type;
declare class CellOutputProcessInfo$Type extends MessageType<CellOutputProcessInfo> {
    constructor();
    create(value?: PartialMessage<CellOutputProcessInfo>): CellOutputProcessInfo;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CellOutputProcessInfo): CellOutputProcessInfo;
    internalBinaryWrite(message: CellOutputProcessInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.CellOutputProcessInfo
 */
export declare const CellOutputProcessInfo: CellOutputProcessInfo$Type;
declare class CellOutput$Type extends MessageType<CellOutput> {
    constructor();
    create(value?: PartialMessage<CellOutput>): CellOutput;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CellOutput): CellOutput;
    private binaryReadMap2;
    internalBinaryWrite(message: CellOutput, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.CellOutput
 */
export declare const CellOutput: CellOutput$Type;
declare class CellExecutionSummary$Type extends MessageType<CellExecutionSummary> {
    constructor();
    create(value?: PartialMessage<CellExecutionSummary>): CellExecutionSummary;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CellExecutionSummary): CellExecutionSummary;
    internalBinaryWrite(message: CellExecutionSummary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.CellExecutionSummary
 */
export declare const CellExecutionSummary: CellExecutionSummary$Type;
declare class TextRange$Type extends MessageType<TextRange> {
    constructor();
    create(value?: PartialMessage<TextRange>): TextRange;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TextRange): TextRange;
    internalBinaryWrite(message: TextRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.TextRange
 */
export declare const TextRange: TextRange$Type;
declare class Cell$Type extends MessageType<Cell> {
    constructor();
    create(value?: PartialMessage<Cell>): Cell;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Cell): Cell;
    private binaryReadMap4;
    internalBinaryWrite(message: Cell, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.Cell
 */
export declare const Cell: Cell$Type;
declare class RunmeSessionDocument$Type extends MessageType<RunmeSessionDocument> {
    constructor();
    create(value?: PartialMessage<RunmeSessionDocument>): RunmeSessionDocument;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunmeSessionDocument): RunmeSessionDocument;
    internalBinaryWrite(message: RunmeSessionDocument, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.RunmeSessionDocument
 */
export declare const RunmeSessionDocument: RunmeSessionDocument$Type;
declare class RunmeSession$Type extends MessageType<RunmeSession> {
    constructor();
    create(value?: PartialMessage<RunmeSession>): RunmeSession;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RunmeSession): RunmeSession;
    internalBinaryWrite(message: RunmeSession, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.RunmeSession
 */
export declare const RunmeSession: RunmeSession$Type;
declare class FrontmatterRunme$Type extends MessageType<FrontmatterRunme> {
    constructor();
    create(value?: PartialMessage<FrontmatterRunme>): FrontmatterRunme;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FrontmatterRunme): FrontmatterRunme;
    internalBinaryWrite(message: FrontmatterRunme, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.FrontmatterRunme
 */
export declare const FrontmatterRunme: FrontmatterRunme$Type;
declare class Frontmatter$Type extends MessageType<Frontmatter> {
    constructor();
    create(value?: PartialMessage<Frontmatter>): Frontmatter;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Frontmatter): Frontmatter;
    internalBinaryWrite(message: Frontmatter, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.Frontmatter
 */
export declare const Frontmatter: Frontmatter$Type;
declare class DeserializeRequestOptions$Type extends MessageType<DeserializeRequestOptions> {
    constructor();
    create(value?: PartialMessage<DeserializeRequestOptions>): DeserializeRequestOptions;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeserializeRequestOptions): DeserializeRequestOptions;
    internalBinaryWrite(message: DeserializeRequestOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.DeserializeRequestOptions
 */
export declare const DeserializeRequestOptions: DeserializeRequestOptions$Type;
declare class DeserializeRequest$Type extends MessageType<DeserializeRequest> {
    constructor();
    create(value?: PartialMessage<DeserializeRequest>): DeserializeRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeserializeRequest): DeserializeRequest;
    internalBinaryWrite(message: DeserializeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.DeserializeRequest
 */
export declare const DeserializeRequest: DeserializeRequest$Type;
declare class DeserializeResponse$Type extends MessageType<DeserializeResponse> {
    constructor();
    create(value?: PartialMessage<DeserializeResponse>): DeserializeResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeserializeResponse): DeserializeResponse;
    internalBinaryWrite(message: DeserializeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.DeserializeResponse
 */
export declare const DeserializeResponse: DeserializeResponse$Type;
declare class SerializeRequestOutputOptions$Type extends MessageType<SerializeRequestOutputOptions> {
    constructor();
    create(value?: PartialMessage<SerializeRequestOutputOptions>): SerializeRequestOutputOptions;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SerializeRequestOutputOptions): SerializeRequestOutputOptions;
    internalBinaryWrite(message: SerializeRequestOutputOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.SerializeRequestOutputOptions
 */
export declare const SerializeRequestOutputOptions: SerializeRequestOutputOptions$Type;
declare class SerializeRequestOptions$Type extends MessageType<SerializeRequestOptions> {
    constructor();
    create(value?: PartialMessage<SerializeRequestOptions>): SerializeRequestOptions;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SerializeRequestOptions): SerializeRequestOptions;
    internalBinaryWrite(message: SerializeRequestOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.SerializeRequestOptions
 */
export declare const SerializeRequestOptions: SerializeRequestOptions$Type;
declare class SerializeRequest$Type extends MessageType<SerializeRequest> {
    constructor();
    create(value?: PartialMessage<SerializeRequest>): SerializeRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SerializeRequest): SerializeRequest;
    internalBinaryWrite(message: SerializeRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.SerializeRequest
 */
export declare const SerializeRequest: SerializeRequest$Type;
declare class SerializeResponse$Type extends MessageType<SerializeResponse> {
    constructor();
    create(value?: PartialMessage<SerializeResponse>): SerializeResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SerializeResponse): SerializeResponse;
    internalBinaryWrite(message: SerializeResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message runme.parser.v1.SerializeResponse
 */
export declare const SerializeResponse: SerializeResponse$Type;
/**
 * @generated ServiceType for protobuf service runme.parser.v1.ParserService
 */
export declare const ParserService: any;
export {};
