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;
    };
}>, {
    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: ({
                hasError: boolean;
                form: Omit<{
                    team: {
                        name: string;
                        id: number;
                    } | null;
                    _count: {
                        responses: number;
                    };
                } & {
                    settings: import('../../../prisma-client').Prisma.JsonValue;
                    name: string;
                    id: string;
                    description: string | null;
                    disabled: boolean;
                    userId: number;
                    fields: import('../../../prisma-client').Prisma.JsonValue;
                    routes: import('../../../prisma-client').Prisma.JsonValue;
                    position: number;
                    teamId: number | null;
                    createdAt: Date;
                    updatedAt: Date;
                    updatedById: number | null;
                }, "settings" | "fields" | "routes" | "createdAt" | "updatedAt"> & {
                    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;
            } | {
                form: {
                    routes: z.TypeOf<typeof import("../zod").zodRoutes>;
                    fields: z.TypeOf<typeof import("../zod").zodFields>;
                    team: {
                        name: string;
                        id: number;
                    } | null;
                    _count: {
                        responses: number;
                    };
                    settings: import('../../../prisma-client').Prisma.JsonValue;
                    name: string;
                    id: string;
                    description: string | null;
                    disabled: boolean;
                    userId: number;
                    position: number;
                    teamId: number | null;
                    createdAt: Date;
                    updatedAt: Date;
                    updatedById: number | null;
                };
                readOnly: boolean;
                hasError: 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;
            };
        } & {
            settings: import('../../../prisma-client').Prisma.JsonValue;
            name: string;
            id: string;
            description: string | null;
            disabled: boolean;
            userId: number;
            fields: import('../../../prisma-client').Prisma.JsonValue;
            routes: import('../../../prisma-client').Prisma.JsonValue;
            position: number;
            teamId: number | null;
            createdAt: Date;
            updatedAt: Date;
            updatedById: number | null;
        }> | 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: {
                    id: number;
                    metadata: import('../../../prisma-client').Prisma.JsonValue;
                    username: string | null;
                    organization: {
                        slug: string | null;
                    } | null;
                    theme: string | null;
                    movedToProfileId: number | null;
                    brandColor: string | null;
                    darkBrandColor: string | null;
                } & {
                    nonProfileUsername: string | null;
                    profile: import("@calcom/types/UserProfile").UserProfile;
                };
                team: {
                    id: number;
                    metadata: import('../../../prisma-client').Prisma.JsonValue;
                    members: {
                        id: number;
                        role: import('../../../prisma-client').$Enums.MembershipRole;
                        userId: number;
                        teamId: number;
                        disableImpersonation: boolean;
                        accepted: boolean;
                    }[];
                    slug: string | null;
                    parentId: number | null;
                    parent: {
                        slug: string | null;
                    } | null;
                } | null;
                settings: import('../../../prisma-client').Prisma.JsonValue;
                name: string;
                id: string;
                description: string | null;
                disabled: boolean;
                userId: number;
                fields: import('../../../prisma-client').Prisma.JsonValue;
                routes: import('../../../prisma-client').Prisma.JsonValue;
                position: number;
                teamId: number | null;
                createdAt: Date;
                updatedAt: Date;
                updatedById: number | null;
            } & {
                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: {
            name: string;
            id: string;
            description?: string | null | undefined;
            disabled?: boolean | undefined;
            fields?: ({
                id: string;
                type: string;
                label: string;
                identifier?: string | undefined;
                placeholder?: string | undefined;
                selectText?: string | undefined;
                required?: boolean | undefined;
                deleted?: boolean | undefined;
                options?: {
                    id: string | null;
                    label: string;
                }[] | undefined;
            } | {
                id: string;
                type: string;
                label: string;
                routerId: string;
                required?: boolean | undefined;
                placeholder?: string | undefined;
                options?: {
                    id: string | null;
                    label: string;
                }[] | undefined;
                identifier?: string | undefined;
                selectText?: string | undefined;
                deleted?: boolean | undefined;
            })[] | undefined;
            routes?: ({
                id: string;
                action: {
                    type: import("../zod").RouteActionType;
                    value: string;
                    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;
                attributeIdForWeights?: 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: {
            settings: import('../../../prisma-client').Prisma.JsonValue;
            name: string;
            id: string;
            description: string | null;
            disabled: boolean;
            userId: number;
            fields: import('../../../prisma-client').Prisma.JsonValue;
            routes: import('../../../prisma-client').Prisma.JsonValue;
            position: number;
            teamId: number | null;
            createdAt: Date;
            updatedAt: Date;
            updatedById: number | null;
        };
    }>;
    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: {
            name: string;
            id: string;
            type: import('../../../prisma-client').$Enums.AttributeType;
            options: {
                id: string;
                slug: string;
                value: string;
                isGroup: boolean;
                contains: string[];
            }[];
            slug: string;
            isWeightsEnabled: boolean;
        }[];
    }>;
    getIncompleteBookingSettings: import("@trpc/server/unstable-core-do-not-import").QueryProcedure<{
        input: {
            formId: string;
        };
        output: {
            incompleteBookingActions: {
                data: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                enabled: boolean;
                credentialId: number | null;
                formId: string;
                actionType: "SALESFORCE";
            }[];
            credentials: ({
                team: {
                    name: string;
                } | null;
            } & {
                key: import('../../../prisma-client').Prisma.JsonValue;
                id: number;
                type: string;
                userId: number | null;
                teamId: number | null;
                subscriptionId: string | null;
                billingCycleStart: number | null;
                appId: string | null;
                paymentStatus: string | null;
                invalid: boolean | null;
            })[];
        } | undefined;
    }>;
    saveIncompleteBookingSettings: import("@trpc/server/unstable-core-do-not-import").MutationProcedure<{
        input: {
            enabled: boolean;
            formId: string;
            actionType: "SALESFORCE";
            data?: Record<string, any> | undefined;
            credentialId?: number | undefined;
        };
        output: void;
    }>;
}>;
export default appRoutingForms;
//# sourceMappingURL=_router.d.ts.map