import { DependencyList } from 'react'; export declare function toggleApplicationStateChangeLog(enable: boolean): void; /** * hold all listener for application state change listening */ export declare const appStateChangeHookArray: Map void>; /** * use this hooks to listen application switch between foreground and background * @param reasonKey why you need subscribe the state of application change * @param callback the action you want to execute when application state change * @param deps extra dependencies */ export declare function useAppForegroundAndBackgroundChangeListener(reasonKey: string, callback: (foreground: boolean) => void, deps?: DependencyList): void; /** * before you inject the listener to this utils , you need call this function in your entry component to enable this ability */ export declare function useApplicationStateChangeAbility(): void;