import type { ApiErrorResponse, ApiSuccessResponse } from '../../../types/index.ts';
import type { CreateScheduleHandlerReturn } from '../../../../trpc/server/routers/viewer/availability/schedule/create.handler';
interface useAtomCreateScheduleOptions {
    onSuccess?: (res: ApiSuccessResponse<CreateScheduleHandlerReturn>) => void;
    onError?: (err: ApiErrorResponse) => void;
}
export declare const useAtomCreateSchedule: ({ onSuccess, onError }?: useAtomCreateScheduleOptions) => import("@tanstack/react-query").UseMutationResult<ApiErrorResponse | ApiSuccessResponse<{
    schedule: {
        name: string;
        id: number;
        userId: number;
        timeZone: string | null;
    };
}>, unknown, {
    name: string;
    schedule?: {
        end: Date;
        start: Date;
    }[][] | undefined;
    eventTypeId?: number | undefined;
}, unknown>;
export {};
//# sourceMappingURL=useAtomCreateSchedule.d.ts.map