UNPKG

@sprucelabs/spruce-cli

Version:

Command line interface for building Spruce skills.

53 lines (52 loc) 1.44 kB
import { BaseWidget } from './widgets.types'; export declare const windowEventContract: { eventSignatures: { key: { emitPayloadSchema: { id: string; fields: { key: { type: "text"; isRequired: true; }; }; }; }; kill: { emitPayloadSchema: { id: string; fields: { code: { type: "number"; isRequired: true; }; }; }; }; resize: { emitPayloadSchema: { id: string; fields: { width: { type: "number"; isRequired: true; }; height: { type: "number"; isRequired: true; }; }; }; }; }; }; export type WindowEventContract = typeof windowEventContract; export interface WindowWidgetOptions { } export interface WindowWidget extends BaseWidget<WindowEventContract> { readonly type: 'window'; hideCursor: () => void; showCursor: () => void; setTitle: (title: string) => void; getFocusedWidget(): BaseWidget | null; }