import { ICollectionComponentState } from '../state/ICollectionComponentState';
import { CollectionState } from '@wix/bex-core';
import { WixPatternsRouterState } from '../state/WixPatternsRouterState';
export interface IUseOptionalCachedStateOptions<S extends ICollectionComponentState> {
    getCollectionsToUpdate?: (state: S, entity: any) => CollectionState<any>[] | null;
    shouldResetCache?: ({ router, uniqueId, }: {
        router: WixPatternsRouterState | null;
        uniqueId: string;
    }) => boolean;
}
export declare function useOptionalCachedState<S extends ICollectionComponentState>(createState: () => S, { getCollectionsToUpdate, shouldResetCache, }?: IUseOptionalCachedStateOptions<S>): S;
//# sourceMappingURL=useOptionalCachedState.d.ts.map