export declare const viewerOrganizationsRouter: 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;
    };
}>, {
    create: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            name: string;
            slug: string;
            orgOwnerEmail: string;
            language?: string | undefined;
            seats?: number | undefined;
            pricePerSeat?: number | undefined;
            isPlatform?: boolean | undefined;
            billingPeriod?: import("./create.schema").BillingPeriod | undefined;
        };
        output: {
            userId: number;
            email: string;
            organizationId: number;
            upId: string;
        };
    }>;
    update: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            name?: string | undefined;
            orgId?: string | number | undefined;
            bio?: string | undefined;
            logoUrl?: string | null | undefined;
            calVideoLogo?: string | null | undefined;
            banner?: string | null | undefined;
            slug?: string | undefined;
            hideBranding?: boolean | undefined;
            hideBookATeamMember?: boolean | undefined;
            brandColor?: string | undefined;
            darkBrandColor?: string | undefined;
            theme?: string | null | undefined;
            timeZone?: string | undefined;
            weekStart?: string | undefined;
            timeFormat?: number | undefined;
            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;
            } | undefined;
            lockEventTypeCreation?: boolean | undefined;
            lockEventTypeCreationOptions?: "DELETE" | "HIDE" | undefined;
            adminGetsNoSlotsNotification?: boolean | undefined;
        };
        output: {
            update: boolean;
            userId: number;
            data: {
                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;
            };
        };
    }>;
    verifyCode: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            code: string;
            email: string;
        };
        output: true;
    }>;
    createTeams: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            orgId: number;
            teamNames: string[];
            moveTeams: {
                id: number;
                newSlug: string | null;
                shouldMove: boolean;
            }[];
        };
        output: {
            duplicatedSlugs: string[];
        };
    }>;
    listCurrent: 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;
            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;
            canAdminImpersonate: boolean;
            organizationSettings: {
                lockEventTypeCreationForUsers: boolean | undefined;
                adminGetsNoSlotsNotification: boolean | undefined;
            };
            user: {
                role: import('../../../../../prisma-client').$Enums.MembershipRole;
                accepted: boolean;
            };
        };
    }>;
    checkIfOrgNeedsUpgrade: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: ({
            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;
            };
        } & {
            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: void;
        output: {
            url: string;
            message: string;
        };
    }>;
    setPassword: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            newPassword: string;
        };
        output: {
            update: boolean;
        };
    }>;
    getMembers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamIdToExclude?: number | undefined;
            accepted?: boolean | undefined;
            distinctUser?: boolean | undefined;
        };
        output: {
            id: number;
            userId: number;
            user: {
                id: number;
                name: string | null;
                email: string;
                username: string | null;
                avatarUrl: string | null;
                completedOnboarding: boolean;
            };
            teamId: number;
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            disableImpersonation: boolean;
            accepted: boolean;
        }[];
    }>;
    listMembers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            limit: number;
            cursor?: number | null | undefined;
            searchTerm?: string | undefined;
            expand?: "attributes"[] | undefined;
            filters?: {
                value: string[];
                id: string;
            }[] | undefined;
        };
        output: {
            canUserGetMembers: boolean;
            rows: never[];
            meta: {
                totalRowCount: number;
            };
            nextCursor?: undefined;
        } | {
            rows: {
                id: number;
                username: string | null;
                email: string;
                timeZone: string;
                role: import('../../../../../prisma-client').$Enums.MembershipRole;
                accepted: boolean;
                disableImpersonation: boolean;
                completedOnboarding: boolean;
                avatarUrl: string | null;
                teams: ({
                    id: number;
                    name: string;
                    slug: string | null;
                } | undefined)[];
                attributes: {
                    value: string;
                    id: string;
                    slug: string;
                    attributeId: string;
                }[] | undefined;
            }[];
            nextCursor: number | undefined;
            meta: {
                totalRowCount: number;
            };
            canUserGetMembers?: undefined;
        };
    }>;
    getBrand: 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;
            slug: string;
            fullDomain: string;
            domainSuffix: string;
            name: string;
            logoUrl: string | null;
            isPlatform: boolean;
        } | null;
    }>;
    getUser: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            userId?: number | undefined;
        };
        output: {
            teams: {
                accepted: boolean;
                id: number;
                name: string;
            }[];
            role: import('../../../../../prisma-client').$Enums.MembershipRole;
            schedules: {
                id: number;
                name: string;
            }[];
            id: number;
            name: string | null;
            email: string;
            timeZone: string;
            username: string | null;
            bio: string | null;
            avatarUrl: string | null;
        };
    }>;
    updateUser: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            userId: number;
            timeZone: string;
            role: "ADMIN" | "MEMBER" | "OWNER";
            username?: string | undefined;
            bio?: string | undefined;
            name?: string | undefined;
            email?: string | undefined;
            avatar?: string | undefined;
            attributeOptions?: {
                attributes: {
                    id: string;
                    options?: {
                        value: string;
                        label?: string | undefined;
                    }[] | undefined;
                    value?: string | undefined;
                }[];
                userId: number;
            } | undefined;
        };
        output: {
            success: boolean;
        };
    }>;
    getTeams: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: {
            id: number;
            name: string;
        }[];
    }>;
    addMembersToTeams: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            userIds: number[];
            teamIds: number[];
        };
        output: {
            success: boolean;
            invitedTotalUsers: number;
        };
    }>;
    addMembersToEventTypes: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            userIds: number[];
            teamIds: number[];
            eventTypeIds: number[];
        };
        output: import('../../../../../prisma-client/runtime/library').GetBatchResult;
    }>;
    removeHostsFromEventTypes: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            userIds: number[];
            eventTypeIds: number[];
        };
        output: import('../../../../../prisma-client/runtime/library').GetBatchResult;
    }>;
    bulkDeleteUsers: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            userIds: number[];
        };
        output: {
            success: boolean;
            usersDeleted: number;
        };
    }>;
    listOtherTeamMembers: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
            limit: number;
            query?: string | undefined;
            offset?: number | undefined;
            cursor?: number | null | undefined;
        };
        output: {
            rows: {
                bookerUrl: string;
                user: {
                    id: number;
                    name: string | null;
                    email: string;
                    username: string | null;
                    avatarUrl: string | null;
                } & {
                    nonProfileUsername: string | null;
                    profile: import("@calcom/types/UserProfile").UserProfile;
                };
                id: number;
                role: import('../../../../../prisma-client').$Enums.MembershipRole;
                disableImpersonation: boolean;
                accepted: boolean;
            }[];
            nextCursor: number | null | undefined;
        };
    }>;
    getOtherTeam: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
        };
        output: {
            safeBio: string;
            metadata: import('../../../../../prisma-client').Prisma.JsonValue;
            id: number;
            name: string;
            parent: {
                id: number;
                slug: string | null;
            } | null;
            slug: string | null;
            logoUrl: string | null;
            bio: string | null;
            isPrivate: boolean;
        };
    }>;
    listOtherTeams: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        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;
        }[];
    }>;
    deleteTeam: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            teamId: number;
        };
        output: void;
    }>;
    adminGetAll: 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;
            id: number;
            name: string;
            slug: string | null;
            organizationSettings: {
                id: number;
                organizationId: number;
                isOrganizationVerified: boolean;
                isOrganizationConfigured: boolean;
                isAdminReviewed: boolean;
                orgAutoAcceptEmail: string;
                isAdminAPIEnabled: boolean;
                lockEventTypeCreationForUsers: boolean;
                adminGetsNoSlotsNotification: boolean;
            } | null;
            members: {
                user: {
                    id: number;
                    name: string | null;
                    email: string;
                };
            }[];
        }[];
    }>;
    adminGet: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            id: number;
        };
        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;
            id: number;
            name: string;
            slug: string | null;
            organizationSettings: {
                isOrganizationVerified: boolean;
                isOrganizationConfigured: boolean;
                orgAutoAcceptEmail: string;
            } | null;
            isOrganization: boolean;
            members: {
                user: {
                    id: number;
                    name: string | null;
                    email: string;
                };
            }[];
        };
    }>;
    adminUpdate: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            id: number;
            name?: string | undefined;
            slug?: string | null | undefined;
            organizationSettings?: {
                isOrganizationVerified?: boolean | undefined;
                isOrganizationConfigured?: boolean | undefined;
                isAdminReviewed?: boolean | undefined;
                orgAutoAcceptEmail?: string | undefined;
                isAdminAPIEnabled?: boolean | undefined;
            } | undefined;
        };
        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;
        };
    }>;
    adminVerify: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            orgId: number;
        };
        output: {
            ok: boolean;
            message: string;
        };
    }>;
    adminDelete: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            orgId: number;
        };
        output: {
            ok: boolean;
            message: string;
        };
    }>;
    createPhoneCall: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            id?: number | undefined;
            eventTypeId: number;
            users?: number[] | undefined;
            templateType: "CHECK_IN_APPOINTMENT" | "CUSTOM_TEMPLATE";
            yourPhoneNumber: string;
            numberToCall: string;
            calApiKey: string;
            enabled?: boolean | undefined;
            schedulerName?: string | null | undefined;
            guestName?: string | undefined;
            guestEmail?: string | undefined;
            guestCompany?: string | undefined;
            beginMessage?: string | undefined;
            generalPrompt?: string | undefined;
        };
        output: {
            callId: string;
            agentId: string;
        };
    }>;
    getFacetedValues: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: void;
        output: {
            teams: {
                id: number;
                name: string;
            }[];
            attributes: {
                options: {
                    value: string;
                }[];
                id: string;
                name: string;
            }[];
            roles: ("ADMIN" | "MEMBER" | "OWNER")[];
        };
    }>;
}>;
//# sourceMappingURL=_router.d.ts.map