import FeatheryClient from './featheryClient'; export declare type FeatheryFieldTypes = null | boolean | string | string[] | number | number[] | Promise | Promise[] | Record; export declare type FieldValues = { [fieldKey: string]: FeatheryFieldTypes; }; declare type InitOptions = { userId?: string; cacheUserId?: boolean; collaboratorId?: string; collaboratorReview?: '' | 'readOnly' | 'editable'; preloadForms?: string[]; userTracking?: 'cookie' | 'fingerprint'; language?: string; theme?: string; noSave?: boolean; _enterpriseRegion?: string; }; declare type InitState = { initialized: boolean; sdkKey: string; overrideUserId: boolean; formSchemas: { [formId: string]: any; }; formSessions: { [formId: string]: any; }; fieldValuesInitialized: boolean; redirectCallbacks: Record; renderCallbacks: Record>; remountCallbacks: Record; defaultErrors: Record; isTestEnv: boolean; theme: string; region: string; initNoSave: boolean; _internalUserId: string; authenticationError?: string; } & InitOptions; declare let initFormsPromise: Promise; export declare const defaultClient: FeatheryClient; declare const initState: InitState; declare let fieldValues: FieldValues; declare let filePathMap: Record; export declare const fileDeduplicationCount: Record; export declare const fileRetryStatus: Record; declare function init(sdkKey: string, options?: InitOptions): Promise; declare function initInfo(): InitState; declare function updateUserId(newUserId?: string, merge?: boolean): Promise; declare function updateTheme(newTheme?: string): Promise; /** * If customers provide files through setFieldValues * we need to explicitly convert any files to file Promises * since they may not have done so */ declare function setFieldValues(userVals: FieldValues, rerender?: boolean, skipServerSubmit?: boolean): void; declare function getFieldValues(): { [x: string]: FeatheryFieldTypes; }; export { init, initInfo, updateUserId, updateTheme, setFieldValues, getFieldValues, initState, initFormsPromise, fieldValues, filePathMap }; //# sourceMappingURL=init.d.ts.map