import type { TrpcSessionUser } from '../../trpc';
import type { TConnectedCalendarsInputSchema } from "./connectedCalendars.schema";
type ConnectedCalendarsOptions = {
    ctx: {
        user: NonNullable<TrpcSessionUser>;
    };
    input: TConnectedCalendarsInputSchema;
};
export declare const connectedCalendarsHandler: ({ ctx, input }: ConnectedCalendarsOptions) => Promise<{
    connectedCalendars: ({
        integration: import("@calcom/types/App").App & {
            credential: import('../../../../app-store/utils').CredentialDataWithTeamName;
            credentials: import('../../../../app-store/utils').CredentialDataWithTeamName[];
            locationOption: import('../../../../app-store/utils').LocationOption | null;
        };
        credentialId: number;
        primary?: undefined;
        calendars?: undefined;
        error?: undefined;
    } | {
        integration: {
            installed?: boolean;
            type: `${string}_calendar` | `${string}_messaging` | `${string}_payment` | `${string}_video` | `${string}_other` | `${string}_automation` | `${string}_analytics` | `${string}_crm` | `${string}_other_calendar`;
            title?: string;
            name: string;
            description: string;
            variant: "calendar" | "payment" | "conferencing" | "video" | "other" | "other_calendar" | "automation" | "crm";
            slug: string;
            category?: string;
            categories: import('../../../../prisma-client').AppCategories[];
            extendsFeature?: "EventType" | "User";
            logo: string;
            publisher: string;
            url: string;
            docsUrl?: string;
            verified?: boolean;
            trending?: boolean;
            rating?: number;
            reviews?: number;
            isGlobal?: boolean;
            simplePath?: string;
            email: string;
            key?: import('../../../../prisma-client').Prisma.JsonValue;
            feeType?: "monthly" | "usage-based" | "one-time" | "free";
            price?: number;
            commission?: number;
            licenseRequired?: boolean;
            teamsPlanRequired?: {
                upgradeUrl: string;
            };
            appData?: import("@calcom/types/App").AppData;
            paid?: import("@calcom/types/App").PaidAppData;
            dirName?: string;
            isTemplate?: boolean;
            __template?: string;
            dependencies?: string[];
            concurrentMeetings?: boolean;
            createdAt?: string;
            isOAuth?: boolean;
            locationOption: import('../../../../app-store/utils').LocationOption | null;
        };
        credentialId: number;
        primary: {
            readOnly: boolean;
            primary: true | null;
            isSelected: boolean;
            credentialId: number;
            name?: string;
            email?: string;
            primaryEmail?: string;
            integrationTitle?: string;
            userId?: number | undefined;
            integration?: string | undefined;
            externalId: string;
        };
        calendars: {
            readOnly: boolean;
            primary: true | null;
            isSelected: boolean;
            credentialId: number;
            name?: string;
            email?: string;
            primaryEmail?: string;
            integrationTitle?: string;
            userId?: number | undefined;
            integration?: string | undefined;
            externalId: string;
        }[];
        error?: undefined;
    } | {
        integration: {
            installed?: boolean;
            type: `${string}_calendar` | `${string}_messaging` | `${string}_payment` | `${string}_video` | `${string}_other` | `${string}_automation` | `${string}_analytics` | `${string}_crm` | `${string}_other_calendar`;
            title?: string;
            name: string;
            description: string;
            variant: "calendar" | "payment" | "conferencing" | "video" | "other" | "other_calendar" | "automation" | "crm";
            slug: string;
            category?: string;
            categories: import('../../../../prisma-client').AppCategories[];
            extendsFeature?: "EventType" | "User";
            logo: string;
            publisher: string;
            url: string;
            docsUrl?: string;
            verified?: boolean;
            trending?: boolean;
            rating?: number;
            reviews?: number;
            isGlobal?: boolean;
            simplePath?: string;
            email: string;
            key?: import('../../../../prisma-client').Prisma.JsonValue;
            feeType?: "monthly" | "usage-based" | "one-time" | "free";
            price?: number;
            commission?: number;
            licenseRequired?: boolean;
            teamsPlanRequired?: {
                upgradeUrl: string;
            };
            appData?: import("@calcom/types/App").AppData;
            paid?: import("@calcom/types/App").PaidAppData;
            dirName?: string;
            isTemplate?: boolean;
            __template?: string;
            dependencies?: string[];
            concurrentMeetings?: boolean;
            createdAt?: string;
            isOAuth?: boolean;
            locationOption: import('../../../../app-store/utils').LocationOption | null;
        };
        credentialId: number;
        error: {
            message: string;
        };
        primary?: undefined;
        calendars?: undefined;
    })[];
    destinationCalendar: {
        primary?: boolean;
        name?: string;
        readOnly?: boolean;
        email?: string;
        primaryEmail: string | null;
        credentialId: number | null;
        integrationTitle?: string;
        userId: number | null;
        integration: string;
        externalId: string;
        id: number;
        eventTypeId: number | null;
    };
}>;
export {};
//# sourceMappingURL=connectedCalendars.handler.d.ts.map