import * as React from 'react'; export interface WithFetchProps { loading: boolean; error?: any; data?: TReturnedData; invoke: (params: any) => void; } export interface IWrapperProps { onSuccess?: (data: TReturnedData) => void; onFail?: (error: any) => void; } export interface IState { loading: boolean; data?: TReturnedData; error?: any; } export declare const withInvoke: (integrationId: string, functionName: string) => (WrappedComponent: React.ComponentType>) => { new (props: TP): { context: import("./bearer-provider").IBearerContextValue; invoke: (params?: any) => Promise; render(): JSX.Element; setState(state: IState | ((prevState: Readonly>, props: Readonly>) => IState | Pick, K> | null) | Pick, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callBack?: (() => void) | undefined): void; readonly props: Readonly<{ children?: React.ReactNode; }> & Readonly>; state: Readonly>; refs: { [key: string]: React.ReactInstance; }; }; displayName: string; contextType: React.Context; };