import type { BookingResponse } from "@calcom/platform-libraries";
import type { ApiResponse, ApiErrorResponse, ApiSuccessResponse } from '../../../types/index.ts';
interface IUseCreateInstantBooking {
    onSuccess?: (res: ApiSuccessResponse<BookingResponse>) => void;
    onError?: (err: ApiErrorResponse | Error) => void;
}
export declare const useCreateInstantBooking: ({ onSuccess, onError }?: IUseCreateInstantBooking) => import("@tanstack/react-query").UseMutationResult<ApiResponse<{
    luckyUsers?: number[] | undefined;
    troubleshooterData?: {
        organizerUser: {
            id: number;
        } | null;
        eventType: {
            id: number;
            slug: string;
        };
        allHostUsers: number[];
        luckyUsers: number[];
        luckyUserPool: number[];
        fixedUsers: number[];
        luckyUsersFromFirstBooking: number[];
        usedContactOwnerEmail: string | null;
        askedContactOwnerEmail: string | null;
        isManagedEventType: boolean;
    } | undefined;
    user: {
        email: null;
        name?: string | null | undefined;
        timeZone?: string | undefined;
        username?: string | null | undefined;
    };
    paymentRequired: boolean;
    isDryRun: boolean;
    payment?: {
        success: boolean;
        data: import('../../../../prisma-client').Prisma.JsonValue;
        id: number;
        currency: string;
        paymentOption: import('../../../../prisma-client').$Enums.PaymentOption | null;
        bookingId: number;
        uid: string;
        externalId: string;
        appId: string | null;
        refunded: boolean;
        amount: number;
        fee: number;
    }[] | undefined;
    references?: {
        type: string;
        id: number;
        credentialId: number | null;
        deleted: boolean | null;
        bookingId: number | null;
        uid: string;
        thirdPartyRecurringEventId: string | null;
        domainWideDelegationCredentialId: string | null;
        meetingId: string | null;
        meetingPassword: string | null;
        meetingUrl: string | null;
        externalCalendarId: string | null;
    }[] | undefined;
    attendees?: {
        id: number;
        name: string;
        email: string;
        timeZone: string;
        bookingId: number | null;
        locale: string | null;
        phoneNumber: string | null;
        noShow: boolean | null;
    }[] | undefined;
    title?: string | undefined;
    metadata?: import('../../../../prisma-client').Prisma.JsonValue | undefined;
    id?: number | undefined;
    location?: string | null | undefined;
    status?: import('../../../../prisma-client').$Enums.BookingStatus | undefined;
    description?: string | null | undefined;
    eventTypeId?: number | null | undefined;
    userId?: number | null | undefined;
    customInputs?: import('../../../../prisma-client').Prisma.JsonValue | undefined;
    smsReminderNumber?: string | null | undefined;
    recurringEventId?: string | null | undefined;
    rescheduledBy?: string | null | undefined;
    uid?: string | undefined;
    cancellationReason?: string | null | undefined;
    cancelledBy?: string | null | undefined;
    iCalUID?: string | null | undefined;
    responses?: import('../../../../prisma-client').Prisma.JsonValue | undefined;
    idempotencyKey?: string | null | undefined;
    userPrimaryEmail?: string | null | undefined;
    startTime?: Date | undefined;
    endTime?: Date | undefined;
    createdAt?: Date | undefined;
    updatedAt?: Date | null | undefined;
    paid?: boolean | undefined;
    destinationCalendarId?: number | null | undefined;
    rejectionReason?: string | null | undefined;
    reassignReason?: string | null | undefined;
    reassignById?: number | null | undefined;
    dynamicEventSlugRef?: string | null | undefined;
    dynamicGroupSlugRef?: string | null | undefined;
    rescheduled?: boolean | null | undefined;
    fromReschedule?: string | null | undefined;
    scheduledJobs?: string[] | undefined;
    isRecorded?: boolean | undefined;
    iCalSequence?: number | undefined;
    rating?: number | null | undefined;
    ratingFeedback?: string | null | undefined;
    noShowHost?: boolean | null | undefined;
    oneTimePassword?: string | null | undefined;
    creationSource?: import('../../../../prisma-client').$Enums.CreationSource | null | undefined;
    appsStatus?: import("@calcom/platform-libraries").AppsStatus[];
    seatReferenceUid?: string;
    paymentUid?: string;
    message?: string;
    paymentId?: number;
} | {
    references: import("@calcom/types/EventManager").PartialReference[];
    seatReferenceUid: string | undefined;
    troubleshooterData?: {
        organizerUser: {
            id: number;
        } | null;
        eventType: {
            id: number;
            slug: string;
        };
        allHostUsers: number[];
        luckyUsers: number[];
        luckyUserPool: number[];
        fixedUsers: number[];
        luckyUsersFromFirstBooking: number[];
        usedContactOwnerEmail: string | null;
        askedContactOwnerEmail: string | null;
        isManagedEventType: boolean;
    } | undefined;
    isDryRun: boolean;
    luckyUsers?: number[] | undefined;
    user: {
        email: null;
        name?: string | null | undefined;
        timeZone?: string | undefined;
        username?: string | null | undefined;
    };
    paymentRequired: boolean;
    payment: {
        success: boolean;
        data: import('../../../../prisma-client').Prisma.JsonValue;
        id: number;
        currency: string;
        paymentOption: import('../../../../prisma-client').$Enums.PaymentOption | null;
        bookingId: number;
        uid: string;
        externalId: string;
        appId: string | null;
        refunded: boolean;
        amount: number;
        fee: number;
    }[];
    attendees: {
        id: number;
        name: string;
        email: string;
        timeZone: string;
        bookingId: number | null;
        locale: string | null;
        phoneNumber: string | null;
        noShow: boolean | null;
    }[];
    title: string;
    metadata: import('../../../../prisma-client').Prisma.JsonValue;
    id: number;
    location: string | null;
    status: import('../../../../prisma-client').$Enums.BookingStatus;
    description: string | null;
    eventTypeId: number | null;
    userId: number | null;
    customInputs: import('../../../../prisma-client').Prisma.JsonValue;
    smsReminderNumber: string | null;
    recurringEventId: string | null;
    rescheduledBy: string | null;
    uid: string;
    cancellationReason: string | null;
    cancelledBy: string | null;
    iCalUID: string | null;
    responses: import('../../../../prisma-client').Prisma.JsonValue;
    idempotencyKey: string | null;
    userPrimaryEmail: string | null;
    startTime: Date;
    endTime: Date;
    createdAt: Date;
    updatedAt: Date | null;
    paid: boolean;
    destinationCalendarId: number | null;
    rejectionReason: string | null;
    reassignReason: string | null;
    reassignById: number | null;
    dynamicEventSlugRef: string | null;
    dynamicGroupSlugRef: string | null;
    rescheduled: boolean | null;
    fromReschedule: string | null;
    scheduledJobs: string[];
    isRecorded: boolean;
    iCalSequence: number;
    rating: number | null;
    ratingFeedback: string | null;
    noShowHost: boolean | null;
    oneTimePassword: string | null;
    creationSource: import('../../../../prisma-client').$Enums.CreationSource | null;
    appsStatus?: import("@calcom/platform-libraries").AppsStatus[];
    paymentUid?: string;
    paymentId?: number;
}>, Error, {
    metadata: Record<string, string>;
    eventTypeId: number;
    timeZone: string;
    start: string;
    language: string;
    end?: string | undefined;
    eventTypeSlug?: string | undefined;
    rescheduleUid?: string | undefined;
    recurringEventId?: string | undefined;
    rescheduledBy?: string | undefined;
    user?: string | string[] | undefined;
    bookingUid?: string | undefined;
    hasHashedBookingLink?: boolean | undefined;
    hashedLink?: string | null | undefined;
    seatReferenceUid?: string | undefined;
    orgSlug?: string | undefined;
    teamMemberEmail?: string | null | undefined;
    crmOwnerRecordType?: string | null | undefined;
    routedTeamMemberIds?: number[] | null | undefined;
    routingFormResponseId?: number | undefined;
    skipContactOwner?: boolean | undefined;
    crmAppSlug?: string | null | undefined;
    cfToken?: string | null | undefined;
    reroutingFormResponses?: Record<string, {
        value: (string | number | string[]) & (string | number | string[] | undefined);
        label?: string | undefined;
    }> | undefined;
    _isDryRun?: boolean | undefined;
    _shouldServeCache?: boolean | undefined;
}, unknown>;
export {};
//# sourceMappingURL=useCreateInstantBooking.d.ts.map