import type { PrismaClient } from '../../../prisma';
import type { User } from '../../../kysely/types.ts';
export type FindDetailedScheduleByIdReturnType = Awaited<ReturnType<ScheduleRepository["findDetailedScheduleById"]>>;
export declare class ScheduleRepository {
    private readonly prismaClient;
    constructor(prismaClient: PrismaClient);
    findScheduleByIdForBuildDateRanges({ scheduleId }: {
        scheduleId: number;
    }): Promise<{
        user: {
            id: number;
            defaultScheduleId: number | null;
            travelSchedules: {
                id: number;
                timeZone: string;
                startDate: Date;
                endDate: Date | null;
            }[];
        };
        id: number;
        availability: {
            days: number[];
            date: Date | null;
            startTime: Date;
            endTime: Date;
        }[];
        userId: number;
        timeZone: string | null;
    } | null>;
    findScheduleByIdForOwnershipCheck({ scheduleId }: {
        scheduleId: number;
    }): Promise<{
        userId: number;
    } | null>;
    findScheduleById({ id }: {
        id: number;
    }): Promise<{
        name: string;
        id: number;
        availability: {
            id: number;
            days: number[];
            date: Date | null;
            userId: number | null;
            eventTypeId: number | null;
            scheduleId: number | null;
            startTime: Date;
            endTime: Date;
        }[];
        userId: number;
        timeZone: string | null;
    } | null>;
    findDetailedScheduleById({ isManagedEventType, scheduleId, userId, defaultScheduleId, timeZone: userTimeZone, }: {
        timeZone: string;
        userId: number;
        defaultScheduleId: number | null;
        scheduleId?: number;
        isManagedEventType?: boolean;
    }): Promise<{
        id: number;
        name: string;
        isManaged: boolean;
        workingHours: import("@calcom/types/schedule").WorkingHours[];
        schedule: {
            id: number;
            days: number[];
            date: Date | null;
            userId: number | null;
            eventTypeId: number | null;
            scheduleId: number | null;
            startTime: Date;
            endTime: Date;
        }[];
        availability: {
            end: Date;
            userId?: number | null;
            start: Date;
        }[][];
        timeZone: string;
        dateOverrides: {
            ranges: import("@calcom/types/schedule").TimeRange[];
        }[];
        isDefault: boolean;
        isLastSchedule: boolean;
        readOnly: boolean;
        userId: number;
    }>;
    findManyDetailedScheduleByUserId({ isManagedEventType, userId, defaultScheduleId, timeZone: userTimeZone, }: {
        timeZone: string;
        userId: number;
        defaultScheduleId: number | null;
        isManagedEventType?: boolean;
    }): Promise<{
        id: number;
        name: string;
        isManaged: boolean;
        workingHours: import("@calcom/types/schedule").WorkingHours[];
        schedule: {
            id: number;
            days: number[];
            date: Date | null;
            userId: number | null;
            eventTypeId: number | null;
            scheduleId: number | null;
            startTime: Date;
            endTime: Date;
        }[];
        availability: {
            end: Date;
            userId?: number | null;
            start: Date;
        }[][];
        timeZone: string;
        isDefault: boolean;
        dateOverrides: {
            ranges: import("@calcom/types/schedule").TimeRange[];
        }[];
        readOnly: boolean;
        isLastSchedule: boolean;
        userId: number;
    }[]>;
    getDefaultScheduleId(userId: number): Promise<number>;
    hasDefaultSchedule(user: Partial<User>): Promise<boolean>;
    setupDefaultSchedule(userId: number, scheduleId: number): Promise<{
        name: string | null;
        id: number;
        role: import('../../../kysely/types.ts').UserPermissionRole;
        metadata: import("@prisma/client/runtime/client").JsonValue | null;
        username: string | null;
        email: string;
        bio: string | null;
        theme: string | null;
        verified: boolean | null;
        locked: boolean;
        organizationId: number | null;
        locale: string | null;
        timeZone: string;
        requiresBookerEmailVerification: boolean | null;
        uuid: string;
        emailVerified: Date | null;
        avatarUrl: string | null;
        weekStart: string;
        startTime: number;
        endTime: number;
        bufferTime: number;
        hideBranding: boolean;
        appTheme: string | null;
        createdDate: Date;
        trialEndsAt: Date | null;
        lastActiveAt: Date | null;
        defaultScheduleId: number | null;
        completedOnboarding: boolean;
        timeFormat: number | null;
        twoFactorSecret: string | null;
        twoFactorEnabled: boolean;
        backupCodes: string | null;
        identityProvider: import('../../../kysely/types.ts').IdentityProvider;
        identityProviderId: string | null;
        invitedTo: number | null;
        brandColor: string | null;
        darkBrandColor: string | null;
        allowDynamicBooking: boolean | null;
        allowSEOIndexing: boolean | null;
        receiveMonthlyDigestEmail: boolean | null;
        disableImpersonation: boolean;
        movedToProfileId: number | null;
        isPlatformManaged: boolean;
        smsLockState: import('../../../kysely/types.ts').SMSLockState;
        smsLockReviewedByAdmin: boolean;
        referralLinkId: string | null;
        creationSource: import('../../../kysely/types.ts').CreationSource | null;
        whitelistWorkflows: boolean;
    }>;
}
//# sourceMappingURL=ScheduleRepository.d.ts.map