import { Prisma } from '../../../prisma-client';
import { z } from "zod";
import type { ZResponseInputSchema } from '../../../trpc/server/routers/viewer/routing-forms/response.schema';
import { type TargetRoutingFormForResponse } from "./formSubmissionUtils";
export declare const handleResponse: (args_0: {
    response: z.infer<typeof ZResponseInputSchema>["response"];
    form: TargetRoutingFormForResponse;
    formFillerId: string;
    chosenRouteId: string | null;
    isPreview: boolean;
    queueFormResponse?: boolean;
}) => Promise<{
    isPreview: boolean;
    formResponse: {
        id: number;
        response: Prisma.JsonValue;
        createdAt: Date;
        updatedAt: Date | null;
        uuid: string | null;
        formFillerId: string;
        formId: string;
        routedToBookingUid: string | null;
        chosenRouteId: string | null;
    } | {
        id: number;
        formId: string;
        response: Record<string, {
            label: string;
            value: (string | number | string[]) & (string | number | string[] | undefined);
            identifier?: string | undefined;
        }>;
        chosenRouteId: string | null;
        createdAt: Date;
        updatedAt: Date;
    } | null | undefined;
    queuedFormResponse: {
        id: string;
        response: Prisma.JsonValue;
        createdAt: Date;
        updatedAt: Date | null;
        formId: string;
        chosenRouteId: string | null;
        actualResponseId: number | null;
    } | {
        id: string;
        formId: string;
        response: Record<string, {
            label: string;
            value: (string | number | string[]) & (string | number | string[] | undefined);
            identifier?: string | undefined;
        }>;
    } | null | undefined;
    teamMembersMatchingAttributeLogic: null;
    crmContactOwnerEmail: null;
    crmContactOwnerRecordType: null;
    crmAppSlug: null;
    attributeRoutingConfig: {
        skipContactOwner?: boolean | undefined;
        salesforce?: {
            rrSkipToAccountLookupField?: boolean | undefined;
            rrSKipToAccountLookupFieldName?: string | undefined;
        } | undefined;
    } | null | undefined;
    timeTaken: Record<string, number | null>;
}>;
//# sourceMappingURL=handleResponse.d.ts.map