import type { Widgets } from 'neo-blessed';
declare global {
    var __MK1_SCREEN__: Widgets.Screen | undefined;
}
export interface KernelOptions {
    onRebuild?: (cols: number, rows: number) => void | Promise<void>;
}
export declare class MK1Kernel {
    private screen;
    private onRebuild;
    /**
     * Start kernel
     */
    start(renderFn: () => void, options?: KernelOptions): Promise<void>;
    /**
     * Rebuild (destroy + recreate)
     */
    rebuild(reason: string): Promise<void>;
    /**
     * Force rebuild (for dbg:panic)
     */
    panic(): Promise<void>;
    /**
     * Get screen instance
     */
    getScreen(): Widgets.Screen | null;
    /**
     * Stop kernel
     */
    stop(): void;
}
//# sourceMappingURL=kernel.d.ts.map