import { Router } from './router'; import { Route, RouteBundle, RouteContext } from './types'; export declare function toArray(objectOrArray: T | T[]): T[]; export declare function log(msg: string): string; export declare function logValue(value: unknown): string; export declare function ensureBundle(src: string): void; export declare function isObject(o: unknown): o is Record; export declare function isFunction(f: unknown): f is Function; export declare function isString(s: unknown): s is string; export declare function ensureRoute(route: Route): void; export declare function ensureRoutes(routes: Route | Route[]): void; export declare function loadScript(src: string, key?: string): Promise; export declare function loadBundle(bundle: string | RouteBundle): Promise; export declare function fireRouterEvent(type: string, detail: Partial | Partial | Partial): boolean; export declare function getNotFoundError(context: RouteContext): Error & { context: RouteContext; code: number; }; export declare function getAnchorOrigin(anchor: HTMLAnchorElement): string; export declare function runCallbackIfPossible(callback: ((...args: T) => R) | undefined, args: T, thisArg: unknown): R | undefined;