import type { Prisma, Webhook } from '../../../prisma-client';
import type { ApiKey } from '../../../prisma/client';
import { WebhookTriggerEvents } from '../../../prisma/enums';
export declare function addSubscription({ appApiKey, triggerEvent, subscriberUrl, appId, account, }: {
    appApiKey?: ApiKey;
    triggerEvent: WebhookTriggerEvents;
    subscriberUrl: string;
    appId: string;
    account?: {
        id: number;
        name: string | null;
        isTeam: boolean;
    } | null;
}): Promise<{
    time: number | null;
    id: string;
    eventTypeId: number | null;
    userId: number | null;
    teamId: number | null;
    createdAt: Date;
    secret: string | null;
    appId: string | null;
    subscriberUrl: string;
    payloadTemplate: string | null;
    active: boolean;
    eventTriggers: import('../../../prisma-client').$Enums.WebhookTriggerEvents[];
    platform: boolean;
    timeUnit: import('../../../prisma-client').$Enums.TimeUnit | null;
    platformOAuthClientId: string | null;
} | undefined>;
export declare function deleteSubscription({ appApiKey, webhookId, appId, account, }: {
    appApiKey?: ApiKey;
    webhookId: string;
    appId: string;
    account?: {
        id: number;
        name: string | null;
        isTeam: boolean;
    } | null;
}): Promise<{
    time: number | null;
    id: string;
    eventTypeId: number | null;
    userId: number | null;
    teamId: number | null;
    createdAt: Date;
    secret: string | null;
    appId: string | null;
    subscriberUrl: string;
    payloadTemplate: string | null;
    active: boolean;
    eventTriggers: import('../../../prisma-client').$Enums.WebhookTriggerEvents[];
    platform: boolean;
    timeUnit: import('../../../prisma-client').$Enums.TimeUnit | null;
    platformOAuthClientId: string | null;
} | undefined>;
export declare function listBookings(appApiKey?: ApiKey, account?: {
    id: number;
    name: string | null;
    isTeam: boolean;
} | null): Promise<{
    location: string;
    userFieldsResponses: import("@calcom/types/Calendar").CalEventResponses;
    responses: import("@calcom/types/Calendar").CalEventResponses;
    eventType: {
        length: number;
        title: string;
        price: number;
        currency: string;
        description: string | null;
        bookingFields: Prisma.JsonValue;
        requiresConfirmation: boolean;
        team: {
            metadata: Prisma.JsonValue;
            theme: string | null;
            id: number;
            name: string;
            timeZone: string;
            slug: string | null;
            parentId: number | null;
            bookingLimits: Prisma.JsonValue;
            createdAt: Date;
            bio: string | null;
            weekStart: string;
            hideBranding: boolean;
            timeFormat: number | null;
            brandColor: string | null;
            darkBrandColor: string | null;
            smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
            smsLockReviewedByAdmin: boolean;
            logoUrl: string | null;
            calVideoLogo: string | null;
            appLogo: string | null;
            appIconLogo: string | null;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            bannerUrl: string | null;
            isOrganization: boolean;
            pendingPayment: boolean;
            isPlatform: boolean;
            createdByOAuthClientId: string | null;
            includeManagedEventsInLimits: boolean;
        } | null;
    } | null;
    title: string;
    status: import('../../../prisma-client').$Enums.BookingStatus;
    description: string | null;
    user: {
        name: string | null;
        email: string;
        timeZone: string;
        username: string | null;
        locale: string | null;
    } | null;
    customInputs: Prisma.JsonValue;
    cancellationReason: string | null;
    attendees: {
        name: string;
        email: string;
        timeZone: string;
    }[];
    startTime: Date;
    endTime: Date;
}[] | undefined>;
export declare function scheduleTrigger({ booking, subscriberUrl, subscriber, triggerEvent, isDryRun, }: {
    booking: {
        id: number;
        endTime: Date;
        startTime: Date;
    };
    subscriberUrl: string;
    subscriber: {
        id: string;
        appId: string | null;
    };
    triggerEvent: WebhookTriggerEvents;
    isDryRun?: boolean;
}): Promise<void>;
export declare function deleteWebhookScheduledTriggers({ booking, appId, triggerEvent, webhookId, userId, teamId, isDryRun, }: {
    booking?: {
        id: number;
        uid: string;
    };
    appId?: string | null;
    triggerEvent?: WebhookTriggerEvents;
    webhookId?: string;
    userId?: number;
    teamId?: number;
    isDryRun?: boolean;
}): Promise<void>;
export declare function updateTriggerForExistingBookings(webhook: Webhook, existingEventTriggers: WebhookTriggerEvents[], updatedEventTriggers: WebhookTriggerEvents[]): Promise<void>;
export declare function listOOOEntries(appApiKey?: ApiKey, account?: {
    id: number;
    name: string | null;
    isTeam: boolean;
} | null): Promise<{
    id: number;
    user: {
        id: number;
        name: string | null;
        email: string;
        timeZone: string;
    };
    notes: string | null;
    end: Date;
    start: Date;
    reason: {
        reason: string;
        emoji: string;
    } | null;
    createdAt: Date;
    updatedAt: Date;
    uuid: string;
    toUser: {
        id: number;
        name: string | null;
        email: string;
        timeZone: string;
    } | null;
    reasonId: number | null;
}[] | undefined>;
//# sourceMappingURL=scheduleTrigger.d.ts.map