import { Prisma } from '../../../../prisma-client';
import type short from "short-uuid";
import type { z } from "zod";
import type { routingFormResponseInDbSchema } from '../../../../app-store/routing-forms/zod';
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"];
        changedOrganizer: boolean;
        smsReminderNumber: AwaitedBookingData["smsReminderNumber"];
        responses: ReqBodyWithEnd["responses"] | null;
    };
    evt: CalendarEvent;
    originalRescheduledBooking: OriginalRescheduledBooking;
    creationSource?: CreationSource;
    tracking?: Tracking;
};
export declare function createBooking({ uid, reqBody, eventType, input, evt, originalRescheduledBooking, routingFormResponseId, reroutingFormResponses, rescheduledBy, creationSource, tracking, }: CreateBookingParams & {
    rescheduledBy: string | undefined;
}): Promise<{
    user: {
        name: string | null;
        username: string | null;
        email: string;
        timeZone: string;
    } | null;
    payment: {
        success: boolean;
        data: Prisma.JsonValue;
        id: number;
        refunded: boolean;
        currency: string;
        uid: string;
        paymentOption: import('../../../../prisma-client').$Enums.PaymentOption | null;
        bookingId: number;
        externalId: string;
        appId: string | null;
        amount: number;
        fee: number;
    }[];
    attendees: {
        name: string;
        id: number;
        email: string;
        locale: string | null;
        timeZone: string;
        bookingId: number | null;
        phoneNumber: string | null;
        noShow: boolean | null;
    }[];
    references: {
        id: number;
        type: string;
        uid: string;
        credentialId: number | null;
        deleted: boolean | null;
        bookingId: number | null;
        thirdPartyRecurringEventId: string | null;
        delegationCredentialId: string | null;
        domainWideDelegationCredentialId: string | null;
        meetingId: string | null;
        meetingPassword: string | null;
        meetingUrl: string | null;
        externalCalendarId: string | null;
    }[];
} & {
    id: number;
    title: string;
    metadata: Prisma.JsonValue;
    status: import('../../../../prisma-client').$Enums.BookingStatus;
    description: string | null;
    paid: boolean;
    location: string | null;
    rescheduled: boolean | null;
    rating: number | null;
    uid: string;
    userId: number | null;
    eventTypeId: number | null;
    customInputs: Prisma.JsonValue;
    smsReminderNumber: string | null;
    recurringEventId: string | null;
    cancellationReason: string | null;
    cancelledBy: string | null;
    iCalUID: string | null;
    responses: Prisma.JsonValue;
    idempotencyKey: string | null;
    userPrimaryEmail: string | null;
    startTime: Date;
    endTime: Date;
    createdAt: Date;
    updatedAt: Date | null;
    destinationCalendarId: number | null;
    rejectionReason: string | null;
    reassignReason: string | null;
    reassignById: number | null;
    dynamicEventSlugRef: string | null;
    dynamicGroupSlugRef: string | null;
    fromReschedule: string | null;
    scheduledJobs: string[];
    isRecorded: boolean;
    iCalSequence: number;
    ratingFeedback: string | null;
    noShowHost: boolean | null;
    oneTimePassword: string | null;
    rescheduledBy: string | null;
    creationSource: import('../../../../prisma-client').$Enums.CreationSource | null;
}>;
export type Booking = Prisma.PromiseReturnType<typeof createBooking>;
export {};
//# sourceMappingURL=createBooking.d.ts.map