import { FieldOptions } from './fieldHelperFunctions';
import { FieldValues, updateTheme, updateUserId } from './init';
import { AlloyEntities, GetConfigParams, LoanProCustomerObject, SendDocusignParams } from './internalState';
import { FillQuikParams, ForwardInboxEmailOptions, IntegrationActionIds, IntegrationActionOptions, PageSelectionInput } from '@feathery/client-utils';
/**
* Used by contextRef in
, renderAt for vanillajs, and the lifecycle
* methods
*
* @param formUuid
* @returns Form context object
*/
export declare const getFormContext: (formUuid: string) => {
userId: string | undefined;
sdkKey: string;
formName: string;
formId: string;
_getInternalUserId: () => string;
fields: Record;
products: Record;
cart: import("../integrations/stripe/Cart").default;
collaborator: import("./entities/Collaborator").default;
setFormCompletion: () => Promise;
setProgress: (val: any) => void;
updateUserId: typeof updateUserId;
updateTheme: typeof updateTheme;
goToStep: (stepKey: any) => void;
isTestForm: () => boolean;
isLastStep: () => boolean;
getStepProperties: () => {
totalSteps: number;
stepName: any;
previousStepName: string;
backgroundColor: any;
language: string | undefined;
hideRules: Record;
};
validateStep: (showErrors?: boolean) => {
[fieldKey: string]: string;
};
openUrl: (url: string, target?: string) => Promise;
runIntegrationActions: (actionIds: IntegrationActionIds, options: IntegrationActionOptions) => Promise<{
ok: boolean;
payload: any;
error?: undefined;
} | {
ok: boolean;
error: string;
payload?: undefined;
}>;
runAIExtraction: (extractionId: string, options?: {
waitForCompletion: boolean;
}, pages?: PageSelectionInput) => Promise>;
forwardInboxEmail: (options: ForwardInboxEmailOptions) => Promise;
setCalendlyUrl: (url: string) => void;
fillQuikForms: (params: FillQuikParams) => Promise;
sendDocusignEnvelope: (params: SendDocusignParams) => Promise;
applyAlloyJourney: (journeyToken: string, entities: AlloyEntities) => Promise<{
ok: boolean;
payload: any;
error?: undefined;
} | {
ok: boolean;
error: string;
payload?: undefined;
}>;
searchLoanProCustomer: () => Promise<{
ok: boolean;
payload: any;
error?: undefined;
} | {
ok: boolean;
error: any;
payload?: undefined;
}>;
createLoanProCustomer: (bodyParams: LoanProCustomerObject) => Promise<{
ok: boolean;
payload: any;
error?: undefined;
} | {
ok: boolean;
error: any;
payload?: undefined;
}>;
setCollaboratorAsCompleted: (templateId: string) => Promise;
dataHubAction: ({ hubId, operation, entryId, data }: {
hubId: string;
operation: 'get' | 'create' | 'update' | 'delete';
entryId?: string | undefined;
data?: Record | undefined;
}) => Promise;
generateDocuments: ({ documentIds, download, merge, mergedFileName }: {
documentIds: string[];
download?: boolean | undefined;
merge?: boolean | undefined;
mergedFileName?: string | undefined;
}) => Promise<{
files: any;
}>;
getQuikForms: (props: {
dealerNames: string[];
}) => Promise;
getQuikFormRoles: (props: {
formIds: number[];
}) => Promise;
getQuikAccountForms: (props: {
custodian: string;
accountType: string;
isTransition?: boolean;
}) => Promise;
getConfig: (params: GetConfigParams) => Promise;
setFieldValues: (userVals: FieldValues) => void;
getFieldValues: () => {
[x: string]: import("./init").FeatheryFieldTypes;
};
setFieldOptions: (newOptions: FieldOptions) => void;
getFormFields: () => {};
setFieldErrors: (errors: Record) => void;
};
//# sourceMappingURL=formContext.d.ts.map