import type { UpdateScheduleResponse } from '../../../../lib/schedules/updateSchedule';
import type { ApiResponse, ApiErrorResponse, UpdateAtomScheduleDto } from '../../../types/index.ts';
interface IUseAtomUpdateScheduleOptions {
    onSuccess?: (res: ApiResponse<UpdateScheduleResponse>) => void;
    onError?: (err: ApiErrorResponse) => void;
}
export declare const useAtomUpdateSchedule: ({ onSuccess, onError }?: IUseAtomUpdateScheduleOptions) => import("@tanstack/react-query").UseMutationResult<ApiResponse<{
    schedule: {
        name: string;
        id: number;
        userId: number;
    };
    isDefault: boolean;
    availability?: undefined;
    timeZone?: undefined;
    prevDefaultId?: undefined;
    currentDefaultId?: undefined;
} | {
    schedule: {
        eventType: {
            id: number;
            eventName: string | null;
        }[];
        name: string;
        id: number;
        availability: {
            id: number;
            days: number[];
            date: Date | null;
            userId: number | null;
            eventTypeId: number | null;
            scheduleId: number | null;
            startTime: Date;
            endTime: Date;
        }[];
        userId: number;
        timeZone: string | null;
    };
    availability: import("@calcom/types/schedule").Schedule;
    timeZone: string;
    isDefault: boolean;
    prevDefaultId: number | null;
    currentDefaultId: number | null;
}>, unknown, {
    scheduleId: number;
    body: UpdateAtomScheduleDto;
}, unknown>;
export {};
//# sourceMappingURL=useAtomUpdateSchedule.d.ts.map