import type * as React from 'react'; import type { MiniappPageConfig } from '../types.js'; import type { Instance, PageInstance, PageProps } from './instance.js'; export declare function injectPageInstance(inst: Instance, id: string): void; export declare function getPageInstance(id: string): Instance | undefined; export declare function addLeadingSlash(path?: string): string; export declare function safeExecute(path: string, lifecycle: string, ...args: unknown[]): any; export declare function stringify(obj?: Record): string; export declare function getPath(id: string, options?: Record): string; export declare function getOnReadyEventKey(path: string): string; export declare function getOnShowEventKey(path: string): string; export declare function getOnHideEventKey(path: string): string; export declare function createPageConfig(component: any, pageName: string, data: Record, { dataLoader, pageConfig }: { dataLoader: any; pageConfig: any; }, miniappPageConfig?: MiniappPageConfig): PageInstance; export declare function createComponentConfig(component: React.ComponentClass, componentName?: string, data?: Record): any; export declare function createRecursiveComponentConfig(componentName?: string): any;