import { Schema } from 'enty'; export declare type Observable = { subscribe: Function; }; export declare type GetState = () => State; export declare type Dispatch = (action: Action | ((dispatch: Dispatch, getState: GetState) => void)) => void; export declare type SideEffect = (variables: any, meta: any) => Promise | Observable | AsyncGenerator; export declare type ProviderContextType = [State, Dispatch, Record]; export declare type State = { schemas: Record; response: Record; error: Record; requestState: Record; entities: Record; stats: { responseCount: number; }; }; export declare type Action = { type: 'ENTY_FETCH' | 'ENTY_ERROR' | 'ENTY_RECEIVE' | 'ENTY_REMOVE' | 'ENTY_RESET' | 'ENTY_INIT'; payload?: any; meta: { name: string; schema?: Schema; responseKey: string; returnResponse?: boolean; }; };