import type { RuntimeContentItem } from "../code-mode/types.ts"; import { type KernelExecutionResult } from "./jupyter-output.ts"; export type { KernelExecutionResult } from "./jupyter-output.ts"; export declare class DenoJupyterKernel { private readonly deno; private readonly env; private readonly onFailure; private readonly session; private readonly connection; private active; private terminalFailure; constructor(options: { deno: string; maxHeapMiB: number; env?: NodeJS.ProcessEnv | undefined; onFailure?: ((kernel: DenoJupyterKernel, error: Error) => void) | undefined; }); start(signal?: AbortSignal): Promise; execute(code: string, options?: { cellSource?: string | undefined; signal?: AbortSignal | undefined; onOutput?: ((item: RuntimeContentItem) => void) | undefined; interruptOnAbort?: boolean | undefined; }): Promise; complete(code?: string, cursorPosition?: number, signal?: AbortSignal): Promise; interrupt(): Promise; shutdown(): Promise; private handleIopub; private drainOutput; private failKernel; }