import React from 'react';
interface Props {
    src: string;
    children: ({ valid }: {
        valid?: boolean;
    }) => React.ReactNode;
    onChange?: ({ valid }: {
        valid: any;
    }) => void;
}
interface State {
    valid?: boolean;
}
export default class ImageValidator extends React.Component<Props, State> {
    state: {
        valid: any;
    };
    static getDerivedStateFromProps(props: Props, state: State): {
        valid: boolean;
    };
    onImgEvent: (valid: boolean) => void;
    onError: () => void;
    onLoad: () => void;
    render(): JSX.Element;
}
export {};
//# sourceMappingURL=image-validator.d.ts.map