declare type State = { loading: boolean; error: E | null; }; declare type Action = { type: 'start loading' | 'stop loading' | 'clear error'; } | { type: 'new error'; error: E; }; export declare const useNetworkReducer: (state?: State | undefined) => { loading: boolean; error: E | null; setLoading: (loading: boolean) => void; setError: (error: E | null) => void; dispatch: import("react").Dispatch>; }; export {};