import { ITab, WebformState, WebformStateCondition } from '@ws-ui/shared';
import { AppState } from './modules';
import { IRootState } from './modules/root/types';
import { ModelNode, ServerModel } from './modules/model/types';

export declare const CATALOG_REFRESH_DELAY = 2000;
export declare const DEFAULT_CACHE: TCachedState;
export type TCachedState = Pick<IRootState, 'tabs' | 'activeTab' | 'recent'> & Pick<AppState, 'roles' | 'debugger' | 'webforms' | 'sharedCSS' | 'tasks'>;
export declare function saveState(state: TCachedState): void;
export declare function savePrefrences(state: {
    [key: string]: any;
}): void;
export declare function getCashedPrefrences(): any;
export declare function getCachedState(): TCachedState;
export declare function getModalTitle(tab: ITab): string;
export declare const deserializeModel: (data: ServerModel | undefined) => ModelNode[];
export declare function isJSON(extension?: string): boolean;
export declare const refactorConditions: (condition: WebformStateCondition, stateLabel: string | undefined, newValue?: string) => WebformStateCondition;
export declare function refactorWebform(content: ITab['content'], state: WebformState): any;
export declare const selectorEqualityFn: (left: unknown, right: unknown) => boolean;
