import { AuthDict } from "matrix-js-sdk/src/interactive-auth";
import { UIAResponse } from "matrix-js-sdk/src/matrix";
import { InteractiveAuthDialogProps } from "../components/views/dialogs/InteractiveAuthDialog";
type FunctionWithUIA<R, A> = (auth?: AuthDict, ...args: A[]) => Promise<UIAResponse<R>>;
export declare function wrapRequestWithDialog<R, A = any>(requestFunction: FunctionWithUIA<R, A>, opts: Omit<InteractiveAuthDialogProps<R>, "makeRequest" | "onFinished">): (...args: A[]) => Promise<R>;
export {};
