import HandlersController from './handlers.js'; import { IPlatformConstants } from './platform.js'; import { ETargetPlatform } from './types.js'; export type THooksFn = (handler: Function, deps?: any[]) => void; export declare const reactContext: import("preact").Context; export interface IElementContext { instance: any; handlersController: HandlersController; ifServerRender?: boolean; debugLog?: (...args: any[]) => void; platformConfig: IPlatformConstants; } export declare function useStableCallback(callback: T): T; type DepsOrOptions = { /** * 是否需要消费 event 的返回结果 */ handleResult?: boolean; } | any[]; export declare function useEvent(name: string, handler: Function, /** * */ depsOrOptions?: DepsOrOptions): void; export declare function getLifeCycleHooks(eventName: string, disableMultiImpl?: boolean, specifyPlatform?: ETargetPlatform): THooksFn; export declare function useSyncMiniData(data?: {}): void; declare function useMiniInstance(): T; export declare const usePage: typeof useMiniInstance; export declare const useComponent: typeof useMiniInstance; export {};