interface App < S > { pendingChord : string | null ; router ?: RouterApi ; debugLayout ( enabled ?: boolean ) : boolean ; dispose () : void ; draw ( fn : DrawFn ) : void ; getBindings ( mode ?: string , ) : readonly Readonly < { description ?: string ; mode : string ; sequence : string } , > [] ; getMode () : string ; getTerminalProfile () : TerminalProfile ; keys ( bindings : BindingMap < KeyContext < S > > ) : void ; measureElement ( id : string , ) : Readonly < { h : number ; w : number ; x : number ; y : number } > | null ; modes ( modes : ModeBindingMap < KeyContext < S > > ) : void ; onEvent ( handler : EventHandler ) : () => void ; onFocusChange ( handler : FocusChangeHandler ) : () => void ; printAbove ( view : VNode , opts ?: Readonly < { rows ?: number } > ) : Promise < void > ; ready () : Promise < void > ; replaceRoutes ( routes : readonly Readonly < { children ?: readonly Readonly < (
{ id: string; screen: (params: Readonly<Record<string, string>>, context: Readonly<{ router: RouterApi; state: Readonly<S>; update: (updater: S | ((prev: Readonly<S>) => S)) => void; outlet: VNode | null; }>) => VNode; guard?: RouteGuard<...>; children?: readonly Readonly<...>[]; title?: string; keybinding?: string; }
)
, > [] ; guard ?: RouteGuard < S > ; id : string ; keybinding ?: string ; screen : ( params : RouteParams , context : RouteRenderContext < S > ) => VNode ; title ?: string ; } , > [] , ) : void ; replaceView ( fn : ViewFn < S > ) : void ; run () : Promise < void > ; setInlineRows ( rows : number ) : Promise < void > ; setMode ( modeName : string ) : void ; setTheme ( theme : ThemeDefinition ) : void ; start () : Promise < void > ; stop () : Promise < void > ; update ( updater : S | (
( prev : Readonly < S > ) => S )
) : void ; view ( fn : ViewFn < S > ) : void ; } Properties Readonlypending Chord pendingChord : string | null
Methods debug Layout debugLayout ( enabled ?: boolean ) : boolean get Bindings getBindings ( mode ?: string , ) : readonly Readonly < { description ?: string ; mode : string ; sequence : string } , > [] Returns readonly Readonly < { description ?: string ; mode : string ; sequence : string } > [] measure Element measureElement ( id : string , ) : Readonly < { h : number ; w : number ; x : number ; y : number } > | null Returns Readonly < { h : number ; w : number ; x : number ; y : number } > | null print Above printAbove ( view : VNode , opts ?: Readonly < { rows ?: number } > ) : Promise < void > Parameters view : VNode Optionalopts : Readonly < { rows ?: number } > Returns Promise < void > replace Routes replaceRoutes ( routes : readonly Readonly < { children ?: readonly Readonly < (
{ id: string; screen: (params: Readonly<Record<string, string>>, context: Readonly<{ router: RouterApi; state: Readonly<S>; update: (updater: S | ((prev: Readonly<S>) => S)) => void; outlet: VNode | null; }>) => VNode; guard?: RouteGuard<...>; children?: readonly Readonly<...>[]; title?: string; keybinding?: string; }
)
, > [] ; guard ?: RouteGuard < S > ; id : string ; keybinding ?: string ; screen : ( params : RouteParams , context : RouteRenderContext < S > ) => VNode ; title ?: string ; } , > [] , ) : void Parameters routes : readonly Readonly < { children ?: readonly Readonly < ( { id: string; screen: (params: Readonly<Record<string, string>>, context: Readonly<{ router: RouterApi; state: Readonly<S>; update: (updater: S | ((prev: Readonly<S>) => S)) => void; outlet: VNode | null; }>) => VNode; guard?: RouteGuard<...>; children?: readonly Readonly<...>[]; title?: string; keybinding?: string; } ), > [] ; guard ?: RouteGuard < S > ; id : string ; keybinding ?: string ; screen : ( params : RouteParams , context : RouteRenderContext < S > ) => VNode ; title ?: string ; } , > [] Returns void set Inline Rows setInlineRows ( rows : number ) : Promise < void > set Mode setMode ( modeName : string ) : void update update ( updater : S | (
( prev : Readonly < S > ) => S )
) : void Parameters updater : S | (( prev : Readonly < S > ) => S )Returns void
Return the computed layout rect for a widget by its
id, ornullif not found.