UNPKG

iportal

Version:

web-portal

40 lines (39 loc) 1.47 kB
import { ApplicationProptey } from './proptey'; import { Module, ModuleManifest } from '../types'; interface AppRoute { id: string; param: string; search: string; } declare class ApplicationBase extends ApplicationProptey { constructor(); get route(): AppRoute; get exists(): boolean; properties: { darkTheme: boolean; }; setBaseCSS(): void; resolveURL(url: string): URL; promiseModule(promise: () => Promise<ModuleManifest>): Promise<ModuleManifest>; moduleSrcVerify(url: string): boolean; moduleSrcCapture(url: string, capture?: string | ((resolve: { pathname: string; origin: string; host: string; hash: string; href: string; search: string; port: string; searchParams: URLSearchParams; }, url: string) => boolean) | undefined): boolean; getModuleByURL(url: string): Module | undefined; setExists(): Promise<void>; readonly console: { echo: (type: 'log' | 'info' | 'warn' | 'error', pre: string[], mid: string[], suf: string[]) => void; log: (message: string, title: string, description: string) => void; info: (message: string, title: string, description: string) => void; warn: (message: string, title: string, description: string) => void; error: (message: string, title: string, description: string) => void; }; } export { ApplicationBase };