import Component from '../component-class'; export interface Options { ignoreNetworkErrors?: boolean; ignoreMutationErrors?: boolean; } declare global { interface Error { key?: string; } } export interface InjectedProps { networkErrors: ReadonlyArray; mutationErrors: ReadonlyArray; requestInFlight: boolean; onDismissNetworkError: (err: Error) => any; onDismissMutationError: (err: Error) => any; } export default function connectErrors(options?: Options): (WrappedComponent: Component) => Component;