import React from "react"; import { AnimateProps } from "../Animation"; import { Omit } from "../utils/types"; export interface AnimatedComponentProps { animation?: Omit; } declare const withAnimation:

(Component: React.ComponentType

) => { new (props: Readonly

): { render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly

) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; readonly props: Readonly<{ children?: React.ReactNode; }> & Readonly

; state: Readonly<{}>; context: any; refs: { [key: string]: React.ReactInstance; }; }; new (props: P & AnimatedComponentProps, context?: any): { render(): JSX.Element; setState(state: {} | ((prevState: Readonly<{}>, props: Readonly

) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; readonly props: Readonly<{ children?: React.ReactNode; }> & Readonly

; state: Readonly<{}>; context: any; refs: { [key: string]: React.ReactInstance; }; }; }; export default withAnimation;