import { z } from "zod";
import { ZFormQueryInputSchema } from "./formQuery.schema";
export declare const ZFormByResponseIdInputSchema: z.ZodObject<{
    formResponseId: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
    formResponseId: number;
}, {
    formResponseId: number;
}>;
export type TFormQueryInputSchema = z.infer<typeof ZFormQueryInputSchema>;
declare const appRoutingForms: import("@trpc/server/unstable-core-do-not-import").CreateRouterInner<import("@trpc/server/unstable-core-do-not-import").RootConfig<{
    ctx: import('../../../trpc/server/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;
    };
}>, {
    public: import("@trpc/server/unstable-core-do-not-import").CreateRouterInner<import("@trpc/server/unstable-core-do-not-import").RootConfig<{
        ctx: import('../../../trpc/server/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;
        };
    }>, {
        response: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
            input: {
                response: Record<string, {
                    label: string;
                    value: (string | number | string[]) & (string | number | string[] | undefined);
                }>;
                formId: string;
                formFillerId: string;
                chosenRouteId?: string | undefined;
            };
            output: {
                formResponse: {
                    id: number;
                    response: import('../../../prisma-client').Prisma.JsonValue;
                    createdAt: Date;
                    formId: string;
                    formFillerId: string;
                    routedToBookingUid: string | null;
                };
                teamMembersMatchingAttributeLogic: number[] | null;
                attributeRoutingConfig: {
                    skipContactOwner?: boolean | undefined;
                } | null;
            };
        }>;
    }>;
    forms: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            filters?: {
                teamIds?: number[] | undefined;
                userIds?: number[] | undefined;
                upIds?: string[] | undefined;
            } | undefined;
        } | null | undefined;
        output: {
            filtered: {
                form: import("../types/types").SerializableForm<{
                    team: ({
                        members: {
                            id: number;
                            userId: number;
                            teamId: number;
                            role: import('../../../prisma-client').$Enums.MembershipRole;
                            disableImpersonation: boolean;
                            accepted: 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;
                    }) | null;
                    _count: {
                        responses: number;
                    };
                } & {
                    position: number;
                    id: string;
                    name: string;
                    disabled: boolean;
                    description: string | null;
                    routes: import('../../../prisma-client').Prisma.JsonValue;
                    fields: import('../../../prisma-client').Prisma.JsonValue;
                    userId: number;
                    teamId: number | null;
                    createdAt: Date;
                    updatedAt: Date;
                    settings: import('../../../prisma-client').Prisma.JsonValue;
                }>;
                readOnly: boolean;
            }[];
            totalCount: number;
        };
    }>;
    formQuery: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            id: string;
        };
        output: import("../types/types").SerializableForm<{
            team: {
                name: string;
                slug: string | null;
            } | null;
            _count: {
                responses: number;
            };
        } & {
            position: number;
            id: string;
            name: string;
            disabled: boolean;
            description: string | null;
            routes: import('../../../prisma-client').Prisma.JsonValue;
            fields: import('../../../prisma-client').Prisma.JsonValue;
            userId: number;
            teamId: number | null;
            createdAt: Date;
            updatedAt: Date;
            settings: import('../../../prisma-client').Prisma.JsonValue;
        }> | null;
    }>;
    getResponseWithFormFields: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            formResponseId: number;
        };
        output: {
            response: import("../types/types").FormResponse;
            form: import("../types/types").SerializableForm<{
                user: {
                    metadata: import('../../../prisma-client').Prisma.JsonValue;
                    theme: string | null;
                    id: number;
                    username: string | null;
                    brandColor: string | null;
                    darkBrandColor: string | null;
                    organization: {
                        slug: string | null;
                    } | null;
                    movedToProfileId: number | null;
                } & {
                    nonProfileUsername: string | null;
                    profile: import("@calcom/types/UserProfile").UserProfile;
                };
                team: {
                    metadata: import('../../../prisma-client').Prisma.JsonValue;
                    parent: {
                        slug: string | null;
                    } | null;
                    slug: string | null;
                    parentId: number | null;
                    members: {
                        id: number;
                        userId: number;
                        teamId: number;
                        role: import('../../../prisma-client').$Enums.MembershipRole;
                        disableImpersonation: boolean;
                        accepted: boolean;
                    }[];
                } | null;
                position: number;
                id: string;
                name: string;
                disabled: boolean;
                description: string | null;
                routes: import('../../../prisma-client').Prisma.JsonValue;
                fields: import('../../../prisma-client').Prisma.JsonValue;
                userId: number;
                teamId: number | null;
                createdAt: Date;
                updatedAt: Date;
                settings: import('../../../prisma-client').Prisma.JsonValue;
            } & {
                user: {
                    metadata: {
                        proPaidForByTeamId?: number | undefined;
                        stripeCustomerId?: string | undefined;
                        vitalSettings?: {
                            connected?: boolean | undefined;
                            selectedParam?: string | undefined;
                            sleepValue?: number | undefined;
                        } | undefined;
                        isPremium?: boolean | undefined;
                        sessionTimeout?: number | undefined;
                        defaultConferencingApp?: {
                            appSlug?: string | undefined;
                            appLink?: string | undefined;
                        } | undefined;
                        defaultBookerLayouts?: {
                            enabledLayouts: import('../../../prisma/zod-utils').BookerLayouts[];
                            defaultLayout: import('../../../prisma/zod-utils').BookerLayouts;
                        } | null | undefined;
                        emailChangeWaitingForVerification?: string | undefined;
                        migratedToOrgFrom?: {
                            username?: string | null | undefined;
                            lastMigrationTime?: string | undefined;
                            reverted?: boolean | undefined;
                            revertTime?: string | undefined;
                        } | undefined;
                    } | null;
                    movedToProfileId: number | null;
                    username: string | null;
                    nonProfileUsername: string | null;
                    profile: {
                        organization: {
                            slug: string | null;
                        } | null;
                    };
                };
                team: {
                    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;
                    parent?: {
                        slug: string | null;
                    } | null | undefined;
                };
                userOrigin: string;
                teamOrigin: string;
                nonOrgUsername: string | null;
                nonOrgTeamslug: string | null;
            }>;
        };
    }>;
    formMutation: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            id: string;
            name: string;
            description?: string | null | undefined;
            disabled?: boolean | undefined;
            fields?: ({
                label: string;
                type: string;
                id: string;
                identifier?: string | undefined;
                placeholder?: string | undefined;
                selectText?: string | undefined;
                required?: boolean | undefined;
                deleted?: boolean | undefined;
                options?: {
                    label: string;
                    id: string | null;
                }[] | undefined;
            } | {
                label: string;
                type: string;
                id: string;
                routerId: string;
                options?: {
                    label: string;
                    id: string | null;
                }[] | undefined;
                identifier?: string | undefined;
                placeholder?: string | undefined;
                selectText?: string | undefined;
                required?: boolean | undefined;
                deleted?: boolean | undefined;
            })[] | undefined;
            routes?: ({
                id: string;
                action: {
                    value: string;
                    type: import("../zod").RouteActionType;
                    eventTypeId?: number | undefined;
                };
                queryValue: {
                    type: "group" | "switch_group";
                    id?: string | undefined;
                    children1?: any;
                    properties?: any;
                };
                attributeRoutingConfig?: {
                    skipContactOwner?: boolean | undefined;
                } | null | undefined;
                attributesQueryValue?: {
                    type: "group" | "switch_group";
                    id?: string | undefined;
                    children1?: any;
                    properties?: any;
                } | undefined;
                isFallback?: boolean | undefined;
            } | {
                id: string;
                isRouter: true;
            })[] | null | undefined;
            addFallback?: boolean | undefined;
            duplicateFrom?: string | null | undefined;
            teamId?: number | null | undefined;
            shouldConnect?: boolean | undefined;
            settings?: {
                emailOwnerOnSubmission: boolean;
                sendUpdatesTo?: number[] | undefined;
                sendToAll?: boolean | undefined;
            } | null | undefined;
        };
        output: {
            position: number;
            id: string;
            name: string;
            disabled: boolean;
            description: string | null;
            routes: import('../../../prisma-client').Prisma.JsonValue;
            fields: import('../../../prisma-client').Prisma.JsonValue;
            userId: number;
            teamId: number | null;
            createdAt: Date;
            updatedAt: Date;
            settings: import('../../../prisma-client').Prisma.JsonValue;
        };
    }>;
    deleteForm: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            id: string;
        };
        output: import('../../../prisma-client/runtime/library').GetBatchResult;
    }>;
    report: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            formId: string;
            jsonLogicQuery: {
                logic: Record<string, any> | null;
            };
            cursor?: number | null | undefined;
        };
        output: {
            nextCursor: number | null;
            headers: string[];
            responses: string[][];
        };
    }>;
    getAttributesForTeam: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            teamId: number;
        };
        output: {
            options: {
                value: string;
                id: string;
                slug: string;
            }[];
            type: import('../../../prisma-client').$Enums.AttributeType;
            id: string;
            name: string;
            slug: string;
        }[];
    }>;
    findTeamMembersMatchingAttributeLogic: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            response: Record<string, any>;
            routeId: string;
            formId: string;
            isPreview?: boolean | undefined;
            _enablePerf?: boolean | undefined;
            _concurrency?: number | undefined;
        };
        output: {
            troubleshooter: {
                type: import("./utils").TroubleshooterCase;
                data: {
                    routeId: string;
                    attributesQueryValue?: undefined;
                    attributesQueryBuilderConfig?: undefined;
                    teamMembersWithAttributeOptionValuePerAttribute?: undefined;
                    attributesDataPerUser?: undefined;
                    logic?: undefined;
                    attributesForTeam?: undefined;
                };
            } | {
                type: import("./utils").TroubleshooterCase;
                data: {
                    attributesQueryValue: null;
                    routeId?: undefined;
                    attributesQueryBuilderConfig?: undefined;
                    teamMembersWithAttributeOptionValuePerAttribute?: undefined;
                    attributesDataPerUser?: undefined;
                    logic?: undefined;
                    attributesForTeam?: undefined;
                };
            } | {
                type: import("./utils").TroubleshooterCase;
                data: {
                    attributesQueryValue: {
                        type: "group" | "switch_group";
                        id?: string | undefined;
                        children1?: any;
                        properties?: any;
                    } & z.BRAND<"attributesQueryValue">;
                    attributesQueryBuilderConfig: {
                        fields: {
                            [k: string]: {
                                type: string;
                                fieldSettings: {
                                    listValues: {
                                        value: string;
                                        title: string;
                                    }[] | undefined;
                                };
                                label: string;
                                valueSources: ["value"];
                            };
                        };
                        operators: {
                            [x: string]: import("../components/react-awesome-query-builder/config/BasicConfig").Operator;
                        };
                        conjunctions: {
                            [x: string]: import("../components/react-awesome-query-builder/config/BasicConfig").Conjunction;
                        };
                        types: import("../components/react-awesome-query-builder/config/BasicConfig").Types;
                        widgets: import("react-awesome-query-builder").Widgets & {
                            [x: string]: import("react-awesome-query-builder").Widget & {
                                type: string;
                            };
                        };
                        settings: import("react-awesome-query-builder").Settings;
                    };
                    teamMembersWithAttributeOptionValuePerAttribute: {
                        userId: number;
                        attributes: Record<string, {
                            type: import("../types/types").Attribute["type"];
                            value: string | string[];
                        }>;
                    }[];
                    routeId?: undefined;
                    attributesDataPerUser?: undefined;
                    logic?: undefined;
                    attributesForTeam?: undefined;
                };
            } | null;
            result: null;
        } | {
            troubleshooter: {
                type: import("./utils").TroubleshooterCase;
                data: {
                    attributesDataPerUser: Map<number, Record<string, string | string[]>>;
                    attributesQueryValue: {
                        type: "group" | "switch_group";
                        id?: string | undefined;
                        children1?: any;
                        properties?: any;
                    } & z.BRAND<"attributesQueryValue">;
                    attributesQueryBuilderConfig: {
                        fields: {
                            [k: string]: {
                                type: string;
                                fieldSettings: {
                                    listValues: {
                                        value: string;
                                        title: string;
                                    }[] | undefined;
                                };
                                label: string;
                                valueSources: ["value"];
                            };
                        };
                        operators: {
                            [x: string]: import("../components/react-awesome-query-builder/config/BasicConfig").Operator;
                        };
                        conjunctions: {
                            [x: string]: import("../components/react-awesome-query-builder/config/BasicConfig").Conjunction;
                        };
                        types: import("../components/react-awesome-query-builder/config/BasicConfig").Types;
                        widgets: import("react-awesome-query-builder").Widgets & {
                            [x: string]: import("react-awesome-query-builder").Widget & {
                                type: string;
                            };
                        };
                        settings: import("react-awesome-query-builder").Settings;
                    };
                    logic: Object;
                    attributesForTeam: {
                        options: {
                            value: string;
                            id: string;
                            slug: string;
                        }[];
                        type: import('../../../prisma-client').$Enums.AttributeType;
                        id: string;
                        name: string;
                        slug: string;
                    }[];
                    routeId?: undefined;
                    teamMembersWithAttributeOptionValuePerAttribute?: undefined;
                };
            } | null;
            result: {
                id: number;
                name: string | null;
                email: string;
            }[];
        };
    }>;
}>;
export default appRoutingForms;
//# sourceMappingURL=_router.d.ts.map