import type { ApiErrorResponse, ApiResponse } from '../../../types/index.ts';
interface IUseAddSelectedCalendar {
    onSuccess?: (res: ApiResponse) => void;
    onError?: (err: ApiErrorResponse | Error) => void;
}
export declare const useAddSelectedCalendar: ({ onSuccess, onError }?: IUseAddSelectedCalendar) => import("@tanstack/react-query").UseMutationResult<ApiErrorResponse | import('../../../types/index.ts').ApiSuccessResponse<{
    status: string;
    data: {
        userId: number;
        integration: string;
        externalId: string;
        credentialId: number | null;
    };
}>, unknown, {
    credentialId: number;
    integration: string;
    externalId: string;
    delegationCredentialId: string | null;
}, unknown>;
export {};
//# sourceMappingURL=useAddSelectedCalendar.d.ts.map