import type { ScreenSchema, DataSource, ComponentSchema } from './types'; import { Layout } from './Layout'; export interface ScreenComponent { toJSON(): ComponentSchema; } export declare class Screen { private readonly _id; private _title?; private _terminal; private _refreshOnBack; private _data?; private readonly _layout; constructor(id: string); get id(): string; get layout(): Layout; setTitle(title: string): this; setTerminal(terminal?: boolean): this; setRefreshOnBack(refresh?: boolean): this; setData(data: Record): this; addData(key: string, source: DataSource): this; addComponent(component: ScreenComponent): this; addComponents(...components: ScreenComponent[]): this; toJSON(): ScreenSchema; }