declare module 'react-fitted-image' {
  import React from 'react';

  export type FitType = 'auto' | 'contain' | 'cover';

  export interface FittedImageProps {
    /**
     * @default false
     */
    background?: boolean;

    style?: React.CSSProperties;

    className?: string;

    /**
     * @default auto
     */
    fit?: FitType;

    src: string;

    loader?: React.ReactElement;

    onLoad?: () => any;

    onError?: () => any;
  }

  export default class extends React.Component<FittedImageProps> {
  }
}
