import type { TypedUseSelectorHook } from 'react-redux'; import type { CoreAppStore } from '../types'; import type { DialogType, UIModuleState, UIStoreType, UIType } from './types'; export declare const useAppSelector: TypedUseSelectorHook; export declare const getUiStore: (store: UIModuleState) => UIStoreType; /** * Gets the active map Id and wether a dialog is open or closed * * Example: getDialogDetailsByType(store, 'legend') * @param {object} store store object from which the ui state wll be extracted * @param {string} dialogType type of the dialog * @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open */ export declare const getDialogDetailsByType: (store: UIModuleState, dialogType: DialogType) => UIType; /** * For a given ui component: gets wether the dialog is open or closed * * @param {object} store store object from which the ui state wll be extracted * @param {string} dialogType type of the dialog * @returns {boolean} returnType: boolean */ export declare const getisDialogOpen: ((state: UIModuleState, dialogType: DialogType) => boolean) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIType) => boolean; memoizedResultFunc: ((resultFuncArgs_0: UIType) => boolean) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => boolean; dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; /** *For a given ui component: gets the active map Id * * @param {object} store store object from which the ui state wll be extracted * @param {string} dialogType type of the dialog * @returns {string} returnType: string - the active map id */ export declare const getDialogMapId: ((state: UIModuleState, dialogType: DialogType) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIType) => string; memoizedResultFunc: ((resultFuncArgs_0: UIType) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => string; dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; /** *For a given ui component: gets the order of visible dialog * * @param {object} store store object from which the ui state wll be extracted * @param {DialogType} dialogType type of the dialog * @returns {number} the higher the order number the higher the zIndex */ export declare const getDialogOrder: (store: UIModuleState, dialogType: DialogType) => number; /** *For a given ui component: returns if ordered on top * * @param {object} store store object from which the ui state wll be extracted * @param {DialogType} dialogType type of the dialog * @returns {boolean} */ export declare const getDialogIsOrderedOnTop: (store: UIModuleState, dialogType: DialogType) => boolean; export declare const getDialogSource: ((state: UIModuleState, dialogType: DialogType) => import("@opengeoweb/shared").Source) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIType) => import("@opengeoweb/shared").Source; memoizedResultFunc: ((resultFuncArgs_0: UIType) => import("@opengeoweb/shared").Source) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => import("@opengeoweb/shared").Source; dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; /** * Get the active window that should receive keyboard shortcuts * * Example: getActiveWindowId(store) * @param {object} store store object from which the window state will be extracted * @returns {string} active window id */ export declare const getActiveWindowId: ((state: UIModuleState) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIStoreType) => string; memoizedResultFunc: ((resultFuncArgs_0: UIStoreType) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => string; dependencies: [(store: UIModuleState) => UIStoreType]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; /** * Gets the panelId of which the dialog is opened from * * Example: getSourcePanelId(store, 'publicWarnings') * @param {object} store store object from which the panelId state will be extracted * @returns {string} the dialog type */ export declare const getSourcePanelId: ((state: UIModuleState, dialogType: DialogType) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIType | undefined) => string; memoizedResultFunc: ((resultFuncArgs_0: UIType | undefined) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => string; dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType | undefined]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; /** * Gets if this is the active window * * Example: getIsActiveWindowId(store, viewId) * @param {object} store store object from which the window state will be extracted * @returns {string} active window id */ export declare const getIsActiveWindowId: ((state: UIModuleState, viewId: string) => boolean) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIStoreType, resultFuncArgs_1: string) => boolean; memoizedResultFunc: ((resultFuncArgs_0: UIStoreType, resultFuncArgs_1: string) => boolean) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => boolean; dependencies: [(store: UIModuleState) => UIStoreType, (_store: UIModuleState, viewId: string) => string]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; export declare const getDialogIsLoading: ((state: UIModuleState, dialogType: DialogType) => boolean) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIType) => boolean; memoizedResultFunc: ((resultFuncArgs_0: UIType) => boolean) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => boolean; dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; export declare const getDialogError: ((state: UIModuleState, dialogType: DialogType) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; } & { resultFunc: (resultFuncArgs_0: UIType) => string; memoizedResultFunc: ((resultFuncArgs_0: UIType) => string) & { clearCache: () => void; resultsCount: () => number; resetResultsCount: () => void; }; lastResult: () => string; dependencies: [(store: UIModuleState, dialogType: DialogType) => UIType]; recomputations: () => number; resetRecomputations: () => void; dependencyRecomputations: () => number; resetDependencyRecomputations: () => void; } & { argsMemoize: typeof import("reselect").weakMapMemoize; memoize: typeof import("reselect").weakMapMemoize; }; export declare const getUiDialogsByActiveMapId: (store: UIModuleState, mapId: string) => UIType[];