@nu-art/commando
Version:
22 lines (21 loc) • 829 B
TypeScript
import { ConsoleContainer } from './ConsoleContainer';
import { BlessedWidgetOptions } from './types';
type ScreenKeyBinding = {
keys: string[];
callback: VoidFunction;
};
/**
* An abstract class representing a screen container for Blessed widgets with state management and key bindings.
*
* @template State - The type of the state object.
*/
export declare abstract class ConsoleScreen<State extends object> extends ConsoleContainer<'screen', State> {
/**
* Creates an instance of ConsoleScreen.
*
* @param {Widgets.IScreenOptions} [props] - The properties to apply to the screen widget.
* @param {ScreenKeyBinding[]} [keyBinding] - An array of key bindings for the screen widget.
*/
constructor(props?: BlessedWidgetOptions['screen'], keyBinding?: ScreenKeyBinding[]);
}
export {};