import { SubmissionTypes } from '@oneblink/types'; export declare function getPrefillKey(prefillFormDataId: string): string; /** * Get prefill data for a form. Checks if the data is stored locally first, and * then downloads from remote if required. After a successful download from the * remote store, it will store is locally to ensure the next request will * retrieve the data from the local store. * * ```js * const formId = 1 * const prefillFormDataId = '24faee0a-dca1-4c88-9100-9da2aae8e0ac' * const prefillData = await prefillService.getPrefillFormData( * formId, * prefillFormDataId, * ) * if (prefillData) { * // prefill form with data * } * ``` * * @param formId * @param prefillFormDataId * @returns */ export declare function getPrefillFormData>(formId: number, prefillFormDataId: string | undefined | null): Promise; /** * Helper to store Job prefill data locally if it is not currently in the local * store. Pass in an array of Jobs. * * #### Example * * ```js * const jobs = [...] * await jobService.ensurePrefillFormDataExists(jobs) * ``` * * @param jobs * @returns */ export declare function ensurePrefillFormDataExists(jobs: SubmissionTypes.FormsAppJob[]): Promise;