import { PayloadAction } from '@reduxjs/toolkit';
import { CacheKeys } from 'src/lib/types/types';
import { CacheState, CacheType } from '../types';
export type CachePayload = {
    key: CacheKeys;
    id: string;
    cache: any;
    geocode: {
        address: string;
        lat: number;
        lng: number;
    };
};
export type CachesOnKeyPayload = {
    key: CacheKeys;
    caches: Record<string, CacheType>;
};
export type DeleteCachePayload = {
    key: CacheKeys;
    id: string;
};
export declare const initMarkerPos: {
    top: number;
    left: number;
};
export declare const cacheSlice: import("@reduxjs/toolkit").Slice<CacheState, {
    setCache: (state: import("immer/dist/internal.js").WritableDraft<CacheState>, action: PayloadAction<CachePayload>) => void;
    deleteCache: (state: import("immer/dist/internal.js").WritableDraft<CacheState>, action: PayloadAction<DeleteCachePayload>) => void;
    setCachesOnKey: (state: import("immer/dist/internal.js").WritableDraft<CacheState>, action: PayloadAction<CachesOnKeyPayload>) => void;
}, "cache">;
export declare const setCache: import("@reduxjs/toolkit").ActionCreatorWithPayload<CachePayload, "cache/setCache">, deleteCache: import("@reduxjs/toolkit").ActionCreatorWithPayload<DeleteCachePayload, "cache/deleteCache">, setCachesOnKey: import("@reduxjs/toolkit").ActionCreatorWithPayload<CachesOnKeyPayload, "cache/setCachesOnKey">;
declare const _default: import("redux").Reducer<CacheState>;
export default _default;
