import type { Dispatch, PropsWithChildren } from 'react'; import React from 'react'; interface BaseState { displayMinicart: boolean; } type State = Record & BaseState; export interface BaseContextValue extends BaseState { openMinicart: () => void; closeMinicart: () => void; } export type ContextValue = Record & BaseContextValue; type Action = { type: 'OPEN_MINICART'; data: undefined; } | { type: 'CLOSE_MINICART'; data: undefined; } | { type: string; data?: any; }; export declare const Context: React.Context; export type Actions = Record State>; export type Effects = (dispatch: Dispatch) => Omit; export type InitialState = Record; interface Props { actions?: Actions; effects?: Effects; initialState?: InitialState; } export declare const Provider: ({ children, actions, effects, initialState, }: PropsWithChildren) => React.JSX.Element; export {};