import React from 'react';
type InitialState = {
    BMap?: typeof BMap;
    map?: BMap.Map;
    container?: HTMLDivElement | null;
};
export declare const initialState: Partial<InitialState>;
export declare const reducer: (state: InitialState, action: InitialState) => {
    BMap?: typeof BMap;
    map?: BMap.Map;
    container?: HTMLDivElement | null;
};
export interface ContextState {
    state: Partial<InitialState>;
    dispatch: React.Dispatch<InitialState>;
}
export declare const Context: React.Context<ContextState>;
export declare function useMapContext(): {
    state: Partial<InitialState>;
    dispatch: React.Dispatch<InitialState>;
    BMap?: typeof BMap | undefined;
    map?: BMap.Map | undefined;
    container?: (HTMLDivElement | null) | undefined;
};
export {};
