import type { ApiErrorResponse, ApiResponse } from '../../../../types/index.ts';
import type { App } from "@calcom/types/App";
export type UseGetOauthAuthUrlProps = {
    returnTo?: string;
    onErrorReturnTo?: string;
};
export declare const useGetZoomOauthAuthUrl: ({ returnTo, onErrorReturnTo }: UseGetOauthAuthUrlProps) => import("@tanstack/react-query").UseQueryResult<string, Error>;
export declare const useOffice365GetOauthAuthUrl: ({ returnTo, onErrorReturnTo }: UseGetOauthAuthUrlProps) => import("@tanstack/react-query").UseQueryResult<string, Error>;
export type UseConnectGoogleMeetProps = {
    onSuccess?: (res: ApiResponse) => void;
    onError?: (err: ApiErrorResponse) => void;
    returnTo?: string;
    onErrorReturnTo?: string;
};
export declare const useConnectNonOauthApp: ({ onSuccess, onError }?: UseConnectGoogleMeetProps) => import("@tanstack/react-query").UseMutationResult<ApiErrorResponse | import('../../../../types/index.ts').ApiSuccessResponseWithoutData, ApiErrorResponse, string, unknown>;
export declare const useConnect: ({ returnTo, onErrorReturnTo, ...props }: UseConnectGoogleMeetProps) => {
    connect: (app: App["slug"]) => Promise<void>;
};
//# sourceMappingURL=useConnect.d.ts.map