@ypa/cyborg-js
Version:
CyborgJS - A SEO Friendly PBA Framework
42 lines (41 loc) • 1.23 kB
TypeScript
import { NotificationRegistration } from '../notifications/NotificationRegistration';
import { NotificationController } from '../notifications/NotificationController';
import { IAmComponent } from '../interfaces/IAmComponent';
export declare class MotherBoard {
static _instance: MotherBoard;
componentsMap: Record<string, any>;
private _components;
private _data;
constructor();
static getInstance(): MotherBoard;
/**
* Init Application.
*/
init(): void;
/**
* Document ready handler
*/
bind(): void;
build(pEl: HTMLElement): void;
/**
* Window onload handler
*/
onload(): void;
onunload(): void;
destroyComponentListener(pComponent: IAmComponent, pEl: HTMLElement): void;
registerNotification(pObject: NotificationRegistration): void;
/**
* Get NotificationController access.
* @returns {NotificationController}
*/
get notifier(): NotificationController;
get data(): Record<string, any>;
get components(): ReadonlyArray<IAmComponent>;
/**
*/
static getComponentMapByName(pObject: Record<string, any>, pName: string): any;
/**
* destroy application
*/
destroy(): void;
}