import { z } from "zod";
import type { WorkflowType } from "@calcom/ee/workflows/components/WorkflowListPage";
import type { WorkflowStep } from "@calcom/ee/workflows/lib/types";
import { Prisma } from '../../../prisma/client';
import type { TFilteredListInputSchema } from '../../../trpc/server/routers/viewer/workflows/filteredList.schema';
import type { TGetVerifiedEmailsInputSchema } from '../../../trpc/server/routers/viewer/workflows/getVerifiedEmails.schema';
import type { TGetVerifiedNumbersInputSchema } from '../../../trpc/server/routers/viewer/workflows/getVerifiedNumbers.schema';
export declare const ZGetInputSchema: z.ZodObject<{
    id: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    id: number;
}, {
    id: number;
}>;
export type TGetInputSchema = z.infer<typeof ZGetInputSchema>;
export declare class WorkflowRepository {
    private static log;
    static getById({ id }: TGetInputSchema): Promise<{
        time: number | null;
        id: number;
        name: string;
        userId: number | null;
        teamId: number | null;
        team: {
            id: number;
            name: string;
            slug: string | null;
            isOrganization: boolean;
            members: {
                id: number;
                userId: number;
                teamId: number;
                role: import('../../../prisma-client').$Enums.MembershipRole;
                disableImpersonation: boolean;
                accepted: boolean;
            }[];
        } | null;
        steps: {
            template: import('../../../prisma-client').$Enums.WorkflowTemplates;
            id: number;
            action: import('../../../prisma-client').$Enums.WorkflowActions;
            sender: string | null;
            workflowId: number;
            stepNumber: number;
            sendTo: string | null;
            reminderBody: string | null;
            emailSubject: string | null;
            numberRequired: boolean | null;
            numberVerificationPending: boolean;
            includeCalendarEvent: boolean;
        }[];
        trigger: import('../../../prisma-client').$Enums.WorkflowTriggerEvents;
        timeUnit: import('../../../prisma-client').$Enums.TimeUnit | null;
        isActiveOnAll: boolean;
        activeOn: {
            eventType: {
                length: number;
                position: number;
                title: string;
                metadata: Prisma.JsonValue;
                hidden: boolean;
                id: number;
                price: number;
                currency: string;
                description: string | null;
                userId: number | null;
                timeZone: string | null;
                slug: string;
                locations: Prisma.JsonValue;
                offsetStart: number;
                profileId: number | null;
                teamId: number | null;
                eventName: string | null;
                parentId: number | null;
                bookingFields: Prisma.JsonValue;
                periodType: import('../../../prisma-client').$Enums.PeriodType;
                periodStartDate: Date | null;
                periodEndDate: Date | null;
                periodDays: number | null;
                periodCountCalendarDays: boolean | null;
                lockTimeZoneToggleOnBookingPage: boolean;
                requiresConfirmation: boolean;
                requiresConfirmationWillBlockSlot: boolean;
                requiresBookerEmailVerification: boolean;
                recurringEvent: Prisma.JsonValue;
                disableGuests: boolean;
                hideCalendarNotes: boolean;
                hideCalendarEventDetails: boolean;
                minimumBookingNotice: number;
                beforeEventBuffer: number;
                afterEventBuffer: number;
                seatsPerTimeSlot: number | null;
                onlyShowFirstAvailableSlot: boolean;
                seatsShowAttendees: boolean | null;
                seatsShowAvailabilityCount: boolean | null;
                schedulingType: import('../../../prisma-client').$Enums.SchedulingType | null;
                scheduleId: number | null;
                slotInterval: number | null;
                successRedirectUrl: string | null;
                forwardParamsSuccessRedirect: boolean | null;
                bookingLimits: Prisma.JsonValue;
                durationLimits: Prisma.JsonValue;
                isInstantEvent: boolean;
                instantMeetingExpiryTimeOffsetInSeconds: number;
                instantMeetingScheduleId: number | null;
                assignAllTeamMembers: boolean;
                useEventTypeDestinationCalendarEmail: boolean;
                isRRWeightsEnabled: boolean;
                eventTypeColor: Prisma.JsonValue;
                rescheduleWithSameRoundRobinHost: boolean;
                secondaryEmailId: number | null;
            };
        }[];
        activeOnTeams: {
            team: {
                metadata: Prisma.JsonValue;
                theme: string | null;
                id: number;
                name: string;
                timeZone: string;
                slug: string | null;
                parentId: number | null;
                bookingLimits: Prisma.JsonValue;
                createdAt: Date;
                logoUrl: string | null;
                calVideoLogo: string | null;
                appLogo: string | null;
                appIconLogo: string | null;
                bio: string | null;
                hideBranding: boolean;
                isPrivate: boolean;
                hideBookATeamMember: boolean;
                brandColor: string | null;
                darkBrandColor: string | null;
                bannerUrl: string | null;
                timeFormat: number | null;
                weekStart: string;
                isOrganization: boolean;
                pendingPayment: boolean;
                isPlatform: boolean;
                createdByOAuthClientId: string | null;
                smsLockState: import('../../../prisma-client').$Enums.SMSLockState;
                smsLockReviewedByAdmin: boolean;
                includeManagedEventsInLimits: boolean;
            };
        }[];
    } | null>;
    static getVerifiedNumbers({ userId, teamId, }: TGetVerifiedNumbersInputSchema & {
        userId: number | null;
    }): Promise<{
        id: number;
        userId: number | null;
        teamId: number | null;
        phoneNumber: string;
    }[]>;
    static getVerifiedEmails({ userEmail, userId, teamId, }: TGetVerifiedEmailsInputSchema & {
        userEmail: string | null;
        userId: number | null;
    }): Promise<string[]>;
    static getFilteredList({ userId, input }: {
        userId?: number;
        input: TFilteredListInputSchema;
    }): Promise<{
        filtered: WorkflowType[];
        totalCount: number;
    } | undefined>;
    static getRemindersFromRemovedTeams(removedTeams: number[], workflowSteps: WorkflowStep[], activeOn?: number[]): Promise<{
        id: number;
        referenceId: string | null;
        method: string;
    }[]>;
    static deleteAllWorkflowReminders(remindersToDelete: {
        id: number;
        referenceId: string | null;
        method: string;
    }[] | null): Promise<void>;
}
//# sourceMappingURL=workflow.d.ts.map