pages-cook
Version:
web-portals
35 lines (34 loc) • 1.24 kB
TypeScript
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;
properties: {
darkTheme: boolean;
};
setBaseCSS(): void;
resolveURL(url: string): {
path: string;
origin: string;
host: string;
search: string;
};
promiseModule(promise: () => Promise<ModuleManifest>): Promise<ModuleManifest>;
moduleSrcVerify(url: string): boolean;
getModuleByURL(url: string): Module | undefined;
setExists(): Promise<void>;
get exists(): boolean;
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 };