import type { TrpcSessionUser } from "../../../../trpc";
import type { TUpdateInputSchema } from "./update.schema";
type User = NonNullable<TrpcSessionUser>;
type UpdateOptions = {
    ctx: {
        user: {
            id: User["id"];
            defaultScheduleId: User["defaultScheduleId"];
            timeZone: User["timeZone"];
        };
    };
    input: TUpdateInputSchema;
};
export declare const updateHandler: ({ input, ctx }: UpdateOptions) => Promise<{
    schedule: {
        id: number;
        name: string;
        userId: number;
    };
    isDefault: boolean;
    availability?: undefined;
    timeZone?: undefined;
    prevDefaultId?: undefined;
    currentDefaultId?: undefined;
} | {
    schedule: {
        eventType: {
            id: number;
            eventName: string | null;
        }[];
        id: number;
        name: string;
        userId: number;
        timeZone: string | null;
        availability: {
            date: Date | null;
            days: number[];
            id: number;
            eventTypeId: number | null;
            userId: number | null;
            scheduleId: number | null;
            startTime: Date;
            endTime: Date;
        }[];
    };
    availability: import("@calcom/types/schedule").Schedule;
    timeZone: string;
    isDefault: boolean;
    prevDefaultId: number | null;
    currentDefaultId: number | null;
}>;
export {};
//# sourceMappingURL=update.handler.d.ts.map