import type { CALENDARS } from '../../../constants/index.ts';
import type { ApiResponse, ApiErrorResponse } from '../../../types/index.ts';
export declare const getQueryKey: (calendar: (typeof CALENDARS)[number]) => string[];
interface IPUpdateOAuthCredentials {
    onSuccess?: (res: ApiResponse) => void;
    onError?: (err: ApiErrorResponse) => void;
}
export declare const useGetRedirectUrl: (calendar: (typeof CALENDARS)[number], redir?: string) => import("@tanstack/react-query").UseQueryResult<string, Error>;
export declare const useConnect: (calendar: (typeof CALENDARS)[number], redir?: string) => {
    connect: () => Promise<void>;
};
export declare const useSaveCalendarCredentials: ({ onSuccess, onError }?: IPUpdateOAuthCredentials) => import("@tanstack/react-query").UseMutationResult<ApiErrorResponse | import('../../../types/index.ts').ApiSuccessResponse<{
    status: string;
}>, unknown, {
    username: string;
    password: string;
    calendar: (typeof CALENDARS)[number];
}, unknown>;
export {};
//# sourceMappingURL=useConnect.d.ts.map