export declare enum KernelEvents { STREAM = "stream", DISPLAY_DATA = "display_data", UPDATE_DISPLAY_DATA = "update_display_data", EXECUTE_RESULT = "execute_result", EXECUTE_ERROR = "execute_error", EXECUTE_REQUEST = "execute_request", INPUT_REQUEST = "input_request", CLEAR_OUTPUT = "clear_output", COMM_OPEN = "comm_open", COMM_MSG = "comm_msg", COMM_CLOSE = "comm_close", KERNEL_READY = "kernel_ready", KERNEL_BUSY = "kernel_busy", KERNEL_IDLE = "kernel_idle", ALL = "*",// Wildcard event type EXECUTION_STALLED = "execution_stalled", KERNEL_UNRECOVERABLE = "kernel_unrecoverable", EXECUTION_INTERRUPTED = "execution_interrupted", KERNEL_RESTARTED = "kernel_restarted", KERNEL_TERMINATED = "kernel_terminated" } export interface IEventEmitter { on(eventName: string, listener: Function): void; off(eventName: string, listener: Function): void; emit(eventName: string, ...args: any[]): void; setMaxListeners(n: number): void; } export interface IFileSystemMountOptions { enabled?: boolean; root?: string; mountPoint?: string; } export interface IKernelOptions { filesystem?: IFileSystemMountOptions; env?: Record; lockFileURL?: string; autoSyncFs?: boolean; } export interface INativeFSHandle { syncfs(): Promise; } export interface IKernel extends IEventEmitter { initialize(options?: IKernelOptions): Promise; execute(code: string, parent?: any): Promise<{ success: boolean; result?: any; error?: Error; }>; executeStream?(code: string, parent?: any): AsyncGenerator; isInitialized(): boolean; inputReply(content: { value: string; }): Promise; getStatus(): Promise<"active" | "busy" | "unknown">; interrupt?(): Promise; setInterruptBuffer?(buffer: Uint8Array): void; mountFS?(mountPath: string, dirHandle?: FileSystemDirectoryHandle | null, permission?: 'read' | 'readwrite'): Promise; getMountedFileSystems?(): Array<{ mountPath: string; permission: 'read' | 'readwrite'; canSync: boolean; }>; syncFileSystem?(mountPath: string): Promise<{ success: boolean; error?: string; }>; upgradeFileSystemPermission?(mountPath: string): Promise<{ success: boolean; error?: string; }>; complete?(code: string, cursor_pos: number, parent?: any): Promise; inspect?(code: string, cursor_pos: number, detail_level: 0 | 1, parent?: any): Promise; isComplete?(code: string, parent?: any): Promise; commInfo?(target_name: string | null, parent?: any): Promise; commOpen?(content: any, parent?: any): Promise; commMsg?(content: any, parent?: any): Promise; commClose?(content: any, parent?: any): Promise; } export interface IKernelExecuteOptions { code: string; silent?: boolean; storeHistory?: boolean; } export interface IMessage { type: string; bundle?: any; content?: any; metadata?: any; parentHeader?: any; buffers?: any; ident?: any; } export interface IEventData { type: string; data: any; } //# sourceMappingURL=types.d.ts.map