import type short from "short-uuid";
import type { z } from "zod";
import type { routingFormResponseInDbSchema } from '../../../../app-store/routing-forms/zod';
import { Prisma } from '../../../../kysely/types.ts';
import type { CreationSource } from '../../../../prisma/enums';
import type { CalendarEvent } from "@calcom/types/Calendar";
import type { TgetBookingDataSchema } from "../getBookingDataSchema";
import type { AwaitedBookingData, EventTypeId } from "./getBookingData";
import type { NewBookingEventType } from "./getEventTypesFromDB";
import type { LoadedUsers } from "./loadUsers";
import type { OriginalRescheduledBooking } from "./originalRescheduledBookingUtils";
import type { PaymentAppData, Tracking } from "./types";
type ReqBodyWithEnd = TgetBookingDataSchema & {
    end: string;
};
type CreateBookingParams = {
    uid: short.SUUID;
    routingFormResponseId: number | undefined;
    reroutingFormResponses: z.infer<typeof routingFormResponseInDbSchema> | null;
    rescheduledBy: string | undefined;
    reqBody: {
        user: ReqBodyWithEnd["user"];
        metadata: ReqBodyWithEnd["metadata"];
        recurringEventId: ReqBodyWithEnd["recurringEventId"];
    };
    eventType: {
        eventTypeData: NewBookingEventType;
        id: EventTypeId;
        slug: AwaitedBookingData["eventTypeSlug"];
        organizerUser: LoadedUsers[number] & {
            isFixed?: boolean;
            metadata?: Prisma.JsonValue;
        };
        isConfirmedByDefault: boolean;
        paymentAppData: PaymentAppData;
    };
    input: {
        bookerEmail: AwaitedBookingData["email"];
        rescheduleReason: AwaitedBookingData["rescheduleReason"];
        smsReminderNumber: AwaitedBookingData["smsReminderNumber"];
        responses: ReqBodyWithEnd["responses"] | null;
    };
    evt: CalendarEvent;
    originalRescheduledBooking: OriginalRescheduledBooking;
    creationSource?: CreationSource;
    tracking?: Tracking;
};
export declare const createBooking: (args_0: CreateBookingParams & {
    rescheduledBy: string | undefined;
}) => Promise<{
    user: {
        name: string | null;
        username: string | null;
        email: string;
        timeZone: string;
    } | null;
    payment: {
        success: boolean;
        data: import("@prisma/client/runtime/client").JsonValue;
        id: number;
        refunded: boolean;
        currency: string;
        uid: string;
        appId: string | null;
        externalId: string;
        bookingId: number;
        amount: number;
        fee: number;
        paymentOption: import('../../../../kysely/types.ts').PaymentOption | null;
    }[];
    attendees: {
        name: string;
        id: number;
        email: string;
        locale: string | null;
        timeZone: string;
        phoneNumber: string | null;
        bookingId: number | null;
        noShow: boolean | null;
    }[];
    references: {
        id: number;
        type: string;
        uid: string;
        delegationCredentialId: string | null;
        credentialId: number | null;
        domainWideDelegationCredentialId: string | null;
        bookingId: number | null;
        meetingId: string | null;
        thirdPartyRecurringEventId: string | null;
        meetingPassword: string | null;
        meetingUrl: string | null;
        externalCalendarId: string | null;
        deleted: boolean | null;
    }[];
} & {
    id: number;
    title: string;
    metadata: import("@prisma/client/runtime/client").JsonValue | null;
    status: import('../../../../kysely/types.ts').BookingStatus;
    description: string | null;
    paid: boolean;
    location: string | null;
    rescheduled: boolean | null;
    rating: number | null;
    uid: string;
    userId: number | null;
    eventTypeId: number | null;
    createdAt: Date;
    updatedAt: Date | null;
    startTime: Date;
    endTime: Date;
    creationSource: import('../../../../kysely/types.ts').CreationSource | null;
    idempotencyKey: string | null;
    userPrimaryEmail: string | null;
    customInputs: import("@prisma/client/runtime/client").JsonValue | null;
    responses: import("@prisma/client/runtime/client").JsonValue | null;
    destinationCalendarId: number | null;
    cancellationReason: string | null;
    rejectionReason: string | null;
    reassignReason: string | null;
    reassignById: number | null;
    dynamicEventSlugRef: string | null;
    dynamicGroupSlugRef: string | null;
    fromReschedule: string | null;
    recurringEventId: string | null;
    smsReminderNumber: string | null;
    scheduledJobs: string[];
    isRecorded: boolean;
    iCalUID: string | null;
    iCalSequence: number;
    ratingFeedback: string | null;
    noShowHost: boolean | null;
    oneTimePassword: string | null;
    cancelledBy: string | null;
    rescheduledBy: string | null;
}>;
export type Booking = Awaited<ReturnType<typeof createBooking>>;
export {};
//# sourceMappingURL=createBooking.d.ts.map