export declare const viewerTeamsRouter: import("@trpc/server/unstable-core-do-not-import").CreateRouterInner<import("@trpc/server/unstable-core-do-not-import").RootConfig<{
    ctx: import("../../../createContext").InnerContext;
    meta: object;
    errorShape: import("@trpc/server/unstable-core-do-not-import").DefaultErrorShape;
    transformer: {
        stringify: (object: any) => string;
        parse: <T = unknown>(string: string) => T;
        serialize: (object: any) => import("superjson/dist/types").SuperJSONResult;
        deserialize: <T_1 = unknown>(payload: import("superjson/dist/types").SuperJSONResult) => T_1;
        registerClass: (v: import("superjson/dist/types").Class, options?: string | import("superjson/dist/class-registry").RegisterOptions | undefined) => void;
        registerSymbol: (v: Symbol, identifier?: string | undefined) => void;
        registerCustom: <I, O extends import("superjson/dist/types").JSONValue>(transformer: Omit<import("superjson/dist/custom-transformer-registry").CustomTransfomer<I, O>, "name">, name: string) => void;
        allowErrorProps: (...props: string[]) => void;
    };
}>, {
    get: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
            isOrg?: boolean | undefined;
        };
        output: {
            membership: {
                role: import('../../../../../prisma-client').$Enums.MembershipRole;
                accepted: boolean;
            };
            inviteToken: {
                identifier: string;
                token: string;
                expires: Date;
                expiresInDays: number | null;
            } | undefined;
            metadata: {
                requestedSlug?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../../../prisma/zod-utils').BillingPeriod | undefined;
            };
            bookingLimits: Partial<Record<"PER_DAY" | "PER_WEEK" | "PER_MONTH" | "PER_YEAR", number | undefined>> | null;
            logo?: string | undefined;
            theme: string | null;
            id: number;
            name: string;
            parent: {
                metadata: import('../../../../../prisma-client').Prisma.JsonValue;
                id: number;
                name: string;
                slug: string | null;
                logoUrl: string | null;
                isPrivate: boolean;
                isOrganization: boolean;
            } | null;
            children: {
                name: string;
                slug: string | null;
            }[];
            slug: string | null;
            parentId: number | null;
            logoUrl: string | null;
            bio: string | null;
            hideBranding: boolean;
            isPrivate: boolean;
            hideBookATeamMember: boolean;
            brandColor: string | null;
            darkBrandColor: string | null;
            includeManagedEventsInLimits: boolean;
            isOrganization: boolean;
        };
    }>;
    list: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            includeOrgs?: boolean | undefined;
        } | undefined;
        output: {
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            inviteToken: {
                id: number;
                identifier: string;
                teamId: number | null;
                secondaryEmailId: number | null;
                token: string;
                createdAt: Date;
                updatedAt: Date;
                expires: Date;
                expiresInDays: number | null;
            } | undefined;
            id: number;
            name: string;
            parent: {
                metadata: import('../../../../../prisma-client').Prisma.JsonValue;
                theme: string | null;
                id: number;
                name: string;
                timeZone: string;
                slug: string | null;
                parentId: number | null;
                bookingLimits: import('../../../../../prisma-client').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;
            slug: string | null;
            parentId: number | null;
            logoUrl: string | null;
            isOrganization: boolean;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            accepted: boolean;
        }[];
    }>;
    listOwnedTeams: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: {
            metadata: {
                requestedSlug?: string | null | undefined;
                paymentId?: string | undefined;
                subscriptionId?: string | null | undefined;
                subscriptionItemId?: string | null | undefined;
                orgSeats?: number | null | undefined;
                orgPricePerSeat?: number | null | undefined;
                migratedToOrgFrom?: {
                    teamSlug?: string | null | undefined;
                    lastMigrationTime?: string | undefined;
                    reverted?: boolean | undefined;
                    lastRevertTime?: string | undefined;
                } | undefined;
                billingPeriod?: import('../../../../../prisma/zod-utils').BillingPeriod | undefined;
            } | null;
            inviteToken: {
                id: number;
                identifier: string;
                teamId: number | null;
                secondaryEmailId: number | null;
                token: string;
                createdAt: Date;
                updatedAt: Date;
                expires: Date;
                expiresInDays: number | null;
            } | undefined;
            id: number;
            name: string;
            parent: {
                metadata: import('../../../../../prisma-client').Prisma.JsonValue;
                theme: string | null;
                id: number;
                name: string;
                timeZone: string;
                slug: string | null;
                parentId: number | null;
                bookingLimits: import('../../../../../prisma-client').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;
            slug: string | null;
            parentId: number | null;
            logoUrl: string | null;
            isOrganization: boolean;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            accepted: boolean;
        }[];
    }>;
    create: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            name: string;
            slug: string;
            logo?: string | null | undefined;
        };
        output: {
            url: string;
            message: string;
            team: null;
        } | {
            url: string;
            message: string;
            team: {
                metadata: import('../../../../../prisma-client').Prisma.JsonValue;
                theme: string | null;
                id: number;
                name: string;
                timeZone: string;
                slug: string | null;
                parentId: number | null;
                bookingLimits: import('../../../../../prisma-client').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;
            };
        };
    }>;
    update: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            id: number;
            bio?: string | undefined;
            name?: string | undefined;
            logo?: string | null | undefined;
            slug?: string | undefined;
            hideBranding?: boolean | undefined;
            hideBookATeamMember?: boolean | undefined;
            isPrivate?: boolean | undefined;
            brandColor?: string | undefined;
            darkBrandColor?: string | undefined;
            theme?: string | null | undefined;
            bookingLimits?: {
                PER_DAY?: number | undefined;
                PER_WEEK?: number | undefined;
                PER_MONTH?: number | undefined;
                PER_YEAR?: number | undefined;
            } | null | undefined;
            includeManagedEventsInLimits?: boolean | undefined;
        };
        output: {
            logoUrl: string | null;
            name: string;
            bio: string | null;
            slug: string | null;
            theme: string | null;
            brandColor: string | null;
            darkBrandColor: string | null;
            bookingLimits: import("@calcom/types/Calendar").IntervalLimit;
            includeManagedEventsInLimits: boolean;
        } | undefined;
    }>;
    delete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
        };
        output: {
            metadata: import('../../../../../prisma-client').Prisma.JsonValue;
            theme: string | null;
            id: number;
            name: string;
            timeZone: string;
            slug: string | null;
            parentId: number | null;
            bookingLimits: import('../../../../../prisma-client').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;
        };
    }>;
    removeMember: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamIds: number[];
            memberIds: number[];
            isOrg?: boolean | undefined;
        };
        output: void;
    }>;
    inviteMember: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            language: string;
            usernameOrEmail: (string | (string | {
                email: string;
                role: "ADMIN" | "MEMBER" | "OWNER";
            })[]) & (string | (string | {
                email: string;
                role: "ADMIN" | "MEMBER" | "OWNER";
            })[] | undefined);
            role?: "ADMIN" | "MEMBER" | "OWNER" | undefined;
            isPlatform?: boolean | undefined;
        };
        output: {
            usernameOrEmail: string | string[];
            numUsersInvited: number;
        };
    }>;
    acceptOrLeave: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            accept: boolean;
        };
        output: void;
    }>;
    changeMemberRole: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            role: "ADMIN" | "MEMBER" | "OWNER";
            memberId: number;
        };
        output: void;
    }>;
    getMemberAvailability: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
            timezone: string;
            memberId: number;
            dateFrom: string;
            dateTo: string;
        };
        output: {
            busy: import("@calcom/types/Calendar").EventBusyDetails[];
            timeZone: string;
            dateRanges: import('../../../../../lib/date-ranges').DateRange[];
            oooExcludedDateRanges: import('../../../../../lib/date-ranges').DateRange[];
            workingHours: import("@calcom/types/schedule").WorkingHours[];
            dateOverrides: import("@calcom/types/schedule").TimeRange[];
            currentSeats: {
                uid: string;
                startTime: Date;
                _count: {
                    attendees: number;
                };
            }[] | null;
            datesOutOfOffice: import("@calcom/core/getUserAvailability").IOutOfOfficeData;
        };
    }>;
    getMembershipbyUser: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
            memberId: number;
        };
        output: {
            id: number;
            userId: number;
            teamId: number;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            disableImpersonation: boolean;
            accepted: boolean;
        } | null;
    }>;
    updateMembership: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            disableImpersonation: boolean;
            memberId: number;
        };
        output: {
            id: number;
            userId: number;
            teamId: number;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            disableImpersonation: boolean;
            accepted: boolean;
        };
    }>;
    publish: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
        };
        output: {
            url: string;
            status: "REQUIRES_PAYMENT" | "REQUIRES_UPGRADE" | "SUCCESS";
            message?: undefined;
        } | {
            url: string;
            status?: undefined;
            message?: undefined;
        } | {
            url: string;
            message: string;
            status?: undefined;
        };
    }>;
    /** This is a temporal endpoint so we can progressively upgrade teams to the new billing system. */
    getUpgradeable: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: ({
            team: {
                children: {
                    metadata: import('../../../../../prisma-client').Prisma.JsonValue;
                    theme: string | null;
                    id: number;
                    name: string;
                    timeZone: string;
                    slug: string | null;
                    parentId: number | null;
                    bookingLimits: import('../../../../../prisma-client').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;
                }[];
            } & {
                metadata: import('../../../../../prisma-client').Prisma.JsonValue;
                theme: string | null;
                id: number;
                name: string;
                timeZone: string;
                slug: string | null;
                parentId: number | null;
                bookingLimits: import('../../../../../prisma-client').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;
            };
        } & {
            id: number;
            userId: number;
            teamId: number;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            disableImpersonation: boolean;
            accepted: boolean;
        })[];
    }>;
    listMembers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
            limit?: number | undefined;
            searchTerm?: string | undefined;
            cursor?: number | null | undefined;
        };
        output: {
            members: {
                username: string | null;
                role: import('../../../../../prisma-client').$Enums.MembershipRole;
                profile: import("@calcom/types/UserProfile").UserProfile;
                organizationId: number | null;
                organization: any;
                accepted: boolean;
                disableImpersonation: boolean;
                bookerUrl: string;
                teamId: number;
                id: number;
                name: string | null;
                email: string;
                bio: string | null;
                avatarUrl: string | null;
                nonProfileUsername: string | null;
            }[];
            nextCursor: number | undefined;
            meta: {
                totalRowCount: number;
            };
        };
    }>;
    legacyListMembers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamIds?: number[] | undefined;
        };
        output: ({
            id: number;
            name: string | null;
            username: string | null;
            avatarUrl: string | null;
        } & {
            accepted: boolean;
        } & {
            nonProfileUsername: string | null;
            profile: import("@calcom/types/UserProfile").UserProfile;
        })[];
    }>;
    getUserConnectedApps: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
            userIds: number[];
        };
        output: Record<number, {
            name: string | null;
            logo: string | null;
            externalId: string | null;
            app: {
                slug: string;
                categories: import('../../../../../prisma/enums').AppCategories[];
            } | null;
        }[]>;
    }>;
    hasTeamPlan: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: {
            hasTeamPlan: boolean;
        };
    }>;
    listInvites: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: {
            id: number;
            userId: number;
            teamId: number;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            disableImpersonation: boolean;
            accepted: boolean;
        }[];
    }>;
    createInvite: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            token?: string | undefined;
        };
        output: {
            token: string;
            inviteLink: string;
        };
    }>;
    setInviteExpiration: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            token: string;
            expiresInDays?: number | undefined;
        };
        output: void;
    }>;
    deleteInvite: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            token: string;
        };
        output: void;
    }>;
    inviteMemberByToken: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            token: string;
        };
        output: string;
    }>;
    hasEditPermissionForUser: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            memberId: number;
        };
        output: boolean;
    }>;
    resendInvitation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            email: string;
            teamId: number;
            language: string;
            isOrg?: boolean | undefined;
        };
        output: {
            email: string;
            teamId: number;
            language: string;
            isOrg: boolean;
        };
    }>;
    roundRobinReassign: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            bookingId: number;
        };
        output: void;
    }>;
    roundRobinManualReassign: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            bookingId: number;
            teamMemberId: number;
            reassignReason?: string | undefined;
        };
        output: {
            success: boolean;
        };
    }>;
    getRoundRobinHostsToReassign: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            bookingId: number;
            exclude: "fixedHosts";
            cursor?: number | undefined;
            limit?: number | undefined;
            searchTerm?: string | undefined;
        };
        output: {
            items: {
                id: number;
                name: string | null;
                email: string;
                status: string;
            }[];
            nextCursor: number | null;
            totalCount: number;
        };
    }>;
    checkIfMembershipExists: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            value: string;
            teamId: number;
        };
        output: boolean;
    }>;
    addMembersToEventTypes: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            userIds: number[];
            eventTypeIds: number[];
        };
        output: import('../../../../../prisma-client/runtime/library').GetBatchResult;
    }>;
    removeHostsFromEventTypes: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
            userIds: number[];
            eventTypeIds: number[];
        };
        output: import('../../../../../prisma-client/runtime/library').GetBatchResult;
    }>;
}>;
//# sourceMappingURL=_router.d.ts.map