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);
                    identifier?: string | undefined;
                }>;
                formId: string;
                formFillerId: string;
                chosenRouteId?: string | undefined;
                isPreview?: boolean | undefined;
            };
            output: {
                isPreview: boolean;
                formResponse: {
                    id: number;
                    response: import('../../../prisma-client').Prisma.JsonValue;
                    createdAt: Date;
                    formId: string;
                    formFillerId: string;
                    routedToBookingUid: string | null;
                    chosenRouteId: string | null;
                };
                teamMembersMatchingAttributeLogic: number[] | null;
                attributeRoutingConfig: {
                    skipContactOwner?: boolean | undefined;
                    salesforce?: {
                        rrSkipToAccountLookupField?: boolean | undefined;
                        rrSKipToAccountLookupFieldName?: string | undefined;
                    } | undefined;
                } | null | undefined;
            };
        }>;
    }>;
    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: Omit<{
                    team: {
                        id: number;
                        name: string;
                    } | 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;
                }, "routes" | "fields" | "createdAt" | "updatedAt" | "settings"> & {
                    routes: import("../types/types").Routes;
                    fields: import("../types/types").Fields;
                    settings: z.TypeOf<typeof import('../../../prisma/zod-utils').RoutingFormSettings>;
                    createdAt: string;
                    updatedAt: string;
                    connectedForms: {
                        name: string;
                        description: string | null;
                        id: string;
                    }[];
                    routers: {
                        name: string;
                        description: string | null;
                        id: string;
                    }[];
                    teamMembers: import("../types/types").SerializableFormTeamMembers[];
                };
                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;
                    movedToProfileId: number | null;
                    brandColor: string | null;
                    darkBrandColor: string | null;
                    organization: {
                        slug: string | null;
                    } | null;
                } & {
                    nonProfileUsername: string | null;
                    profile: import("@calcom/types/UserProfile").UserProfile;
                };
                team: {
                    metadata: import('../../../prisma-client').Prisma.JsonValue;
                    id: number;
                    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;
                required?: boolean | undefined;
                identifier?: string | undefined;
                placeholder?: string | undefined;
                selectText?: string | undefined;
                deleted?: boolean | undefined;
            })[] | undefined;
            routes?: ({
                id: string;
                action: {
                    value: string;
                    type: import("../zod").RouteActionType;
                    eventTypeId?: number | undefined;
                };
                queryValue: {
                    type: "group";
                    id?: string | undefined;
                    children1?: Record<string, {
                        type?: string | undefined;
                        properties?: {
                            field?: any;
                            operator?: any;
                            value?: any;
                            valueSrc?: any;
                            valueError?: (string | null)[] | undefined;
                            valueType?: any;
                        } | undefined;
                    }> | undefined;
                    properties?: any;
                } | {
                    type: "switch_group";
                    id?: string | undefined;
                    children1?: Record<string, {
                        type?: string | undefined;
                        properties?: {
                            field?: any;
                            operator?: any;
                            value?: any;
                            valueSrc?: any;
                            valueError?: (string | null)[] | undefined;
                            valueType?: any;
                        } | undefined;
                    }> | undefined;
                    properties?: any;
                };
                name?: string | undefined;
                attributeRoutingConfig?: {
                    skipContactOwner?: boolean | undefined;
                    salesforce?: {
                        rrSkipToAccountLookupField?: boolean | undefined;
                        rrSKipToAccountLookupFieldName?: string | undefined;
                    } | undefined;
                } | null | undefined;
                attributesQueryValue?: {
                    type: "group";
                    id?: string | undefined;
                    children1?: Record<string, {
                        type?: string | undefined;
                        properties?: {
                            field?: any;
                            operator?: any;
                            value?: any;
                            valueSrc?: any;
                            valueError?: (string | null)[] | undefined;
                            valueType?: any;
                        } | undefined;
                    }> | undefined;
                    properties?: any;
                } | {
                    type: "switch_group";
                    id?: string | undefined;
                    children1?: Record<string, {
                        type?: string | undefined;
                        properties?: {
                            field?: any;
                            operator?: any;
                            value?: any;
                            valueSrc?: any;
                            valueError?: (string | null)[] | undefined;
                            valueType?: any;
                        } | undefined;
                    }> | undefined;
                    properties?: any;
                } | undefined;
                fallbackAttributesQueryValue?: {
                    type: "group";
                    id?: string | undefined;
                    children1?: Record<string, {
                        type?: string | undefined;
                        properties?: {
                            field?: any;
                            operator?: any;
                            value?: any;
                            valueSrc?: any;
                            valueError?: (string | null)[] | undefined;
                            valueType?: any;
                        } | undefined;
                    }> | undefined;
                    properties?: any;
                } | {
                    type: "switch_group";
                    id?: string | undefined;
                    children1?: Record<string, {
                        type?: string | undefined;
                        properties?: {
                            field?: any;
                            operator?: any;
                            value?: any;
                            valueSrc?: any;
                            valueError?: (string | null)[] | undefined;
                            valueType?: any;
                        } | undefined;
                    }> | undefined;
                    properties?: any;
                } | undefined;
                isFallback?: boolean | undefined;
            } | {
                id: string;
                isRouter: true;
                name?: string | undefined;
            })[] | 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;
            };
            limit?: number | undefined;
            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;
        }[];
    }>;
}>;
export default appRoutingForms;
//# sourceMappingURL=_router.d.ts.map