import type { NextApiResponse, GetServerSidePropsContext } from "next";
import type { PrismaClient } from '../../../../../prisma';
import type { TrpcSessionUser } from "../../../types";
import type { TUpdateInputSchema } from "./update.schema";
type SessionUser = NonNullable<TrpcSessionUser>;
type User = {
    id: SessionUser["id"];
    username: SessionUser["username"];
    profile: {
        id: SessionUser["profile"]["id"] | null;
    };
    userLevelSelectedCalendars: SessionUser["userLevelSelectedCalendars"];
    organizationId: number | null;
    email: SessionUser["email"];
    locale: string;
};
type UpdateOptions = {
    ctx: {
        user: User;
        res?: NextApiResponse | GetServerSidePropsContext["res"];
        prisma: PrismaClient;
    };
    input: TUpdateInputSchema;
};
export type UpdateEventTypeReturn = Awaited<ReturnType<typeof updateHandler>>;
export declare const updateHandler: ({ ctx, input }: UpdateOptions) => Promise<{
    eventType: {
        children: {
            userId: number | null;
        }[];
        title: string;
        description: string | null;
        team: {
            name: string;
            id: number;
            members: {
                user: {
                    name: string | null;
                    id: number;
                    email: string;
                    eventTypes: {
                        slug: string;
                    }[];
                };
                role: import('../../../../../prisma-client').$Enums.MembershipRole;
                accepted: boolean;
            }[];
            slug: string | null;
            parentId: number | null;
            parent: {
                slug: string | null;
            } | null;
        } | null;
        workflows: {
            workflowId: number;
        }[];
        hosts: {
            weight: number | null;
            userId: number;
            isFixed: boolean;
            priority: number | null;
        }[];
        isRRWeightsEnabled: boolean;
        aiPhoneCallConfig: {
            enabled: boolean;
            generalPrompt: string | null;
            beginMessage: string | null;
            llmId: string | null;
        } | null;
        fieldTranslations: {
            field: import('../../../../../prisma-client').$Enums.EventTypeAutoTranslatedField;
        }[];
    };
}>;
export {};
//# sourceMappingURL=update.handler.d.ts.map