import { IColors, IColorsSchema } from './plugins/$color'; import { Router } from './Router'; export interface LoaderResult { getResult(): Promise; } export interface Loader { getFile(fileUrl: string): LoaderResult; getModule(pkgName: string): LoaderResult; } export declare class CScope { constructor(); $id: { [k: string]: HTMLElement; }; $class: { [k: string]: HTMLElement[]; }; $router: Router; $path(src: string, ext?: string): string; $log: Console & ((...args: any[]) => any); $go: ((tag: string, params?: { [k: string]: string; }) => void) | ((area: string, tag: string, params?: { [k: string]: string; }) => void); $root: { [k: string]: any; }; $parent: { [k: string]: any; }; $rootElem: HTMLElement; $rootParentElem: HTMLElement; $color: IColors; $Colors: IColorsSchema; $json: (obj: any) => string; $npm: string; $pop: (target: HTMLElement | string) => void; $loader: Loader; $monitSize(el: HTMLElement, callback: (sz: ResizeObserverEntry) => void): void; $waitComponents(): Promise; $emit(nameOrEvent: string | Event, detailOrtoElem?: Element | any, toElem?: Element): void; $watch(tracker: Function, callback: Function): void; $observer(obj: any): void; $noWatch(obj: T): T; $delay(ms: number): Promise; $next(): Promise; $step(...args: (any | [any, number])[]): any; onReady(): void; onDestroy(): void; onCreate(doc: DocumentFragment): void; onClose(): void; } export type IScope = CScope & { [k: string]: any; }; export declare const Scope: typeof CScope;