import { TServiceParams } from "@digital-alchemy/core"; export interface TerminalBuilderEditor { configure: (config: ACTIVE_CONFIG, done: (type: VALUE_TYPE | VALUE_TYPE[]) => void) => void; render(): void; } export type ComponentDoneCallback = (type?: VALUE_TYPE | VALUE_TYPE[] | CANCEL) => void; export interface TerminalComponent { value?: VALUE; configure(config: CONFIG, onDone: ComponentDoneCallback): void; onEnd(abort?: boolean): void; render(...data: unknown[]): void; } export declare function ApplicationManager({ config, terminal }: TServiceParams): { /** * Start an component instance, and set it as the primary active bit */ activateComponent(name: string, configuration?: CONFIG): Promise; /** * Start an editor instance, and set it as the primary active bit */ activateEditor(name: string, configuration?: CONFIG): Promise; activeApplication: TerminalComponent; /** * How wide is the header message at it's widest? */ headerLength(): number; /** * Internal use */ render(): void; /** * Clear the screen, and re-render the previous header */ reprintHeader(): void; /** * Clear the screen, and place a new header message at the top of the screen */ setHeader(primary?: string, secondary?: string): number | void; };