import { MetadataInfo } from '../metadata/metadata'; import { RTE } from '../rte/rte'; declare type CloseCbType = ((rte: RTE) => void | Promise) | undefined; export declare class App { #private; constructor(isDefault?: boolean, closeCb?: CloseCbType); private _onInit; onInit(_rte: RTE, _manifest: MetadataInfo, _property: MetadataInfo): Promise; private _onClose; onClose(rte: RTE): Promise; run(): void; stop(): void; wait(): void; } /** * This is a convenient function that enables users to setup app property * _before_ creating a app instance. That's why this function resides outside * the App class. */ export declare function setAppProp(appRoot: string, property: Record): void; export {};