declare enum GenderType { Male = "male", Female = "female" } declare enum PreferredLanguage { English = "English", Hindi = "Hindi", German = "German", French = "French", Spanish = "Spanish", Arabic = "Arabic", Italian = "Italian" } declare let Custom_Scan: string; declare let Find_your_perfect_fit: string; declare let One_time_setup_in_2_min_or_less: string; declare let PRIVACY: string; declare let Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone: string; declare let By_ticking_this_box_you_are_agreeing_to_our: string; declare let privacy_policy: string; declare let Get_Measured: string; declare let Login: string; declare let Where_do_you_shop: string; declare let Men_s: string; declare let Women_s: string; declare let Next: string; declare let Preferred_language: string; declare let Hindi: string; declare let English: string; declare let French: string; declare let Spanish: string; declare let German: string; declare let Italian: string; declare let Arabic: string; declare let Phone_Model: string; declare let Select_phone_brand: string; declare let Select_phone_model: string; declare let Measurement_tips: string; declare let Tips_for_your_scan: string; declare let Watch_this_video_to_know_how_to_scan: string; declare let How_to_use_Swan: string; declare let Watch_this_short_video_to_know_how_to_use: string; declare let Shop: string; declare let Skip: string; declare let Form_fitting_clothing: string; declare let How_form_is_fitting_your_outfit: string; declare let For_accurate_scan_please_wear_tight_clothing_Here_s_an_example: string; declare let Scan_with_form_fitting: string; declare let Scan_with_form_loose_fit: string; declare let Turn_up_your_volume: string; declare let For_smart_voice_guide: string; declare let Place_your_phone_on_a_table_at: string; declare let a_hip_height: string; declare let Scan: string; declare let Height: string; declare let Height_in_ft: string; declare let Height_in_inch: string; declare let How_tall_are_you: string; declare let We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do: string; declare let Confirm: string; declare let To_start_your_measurement: string; declare let Scan_this_QR_code_with_your_phone: string; declare let You_can_continue_from_here_after_your_scan: string; declare let Failed_to_get_measurements: string; declare let No_data_found_Go_back_to: string; declare let back: string; declare let Profile: string; declare let shopify: string; declare let fit_view_result: string; declare let Nest: string; declare let Scan_again: string; declare let Provide_feedback: string; declare let Add_to_cart: string; declare let Back_to_product: string; declare let Fit_Notes: string; declare let Fitted: string; declare let Ideal_fit: string; declare let Relaxed: string; declare let Wrong_email_format: string; declare let Something_went_wrong: string; declare let Email_is_required: string; declare let Scan_status: string; declare let Uploading: string; declare let Processing: string; declare let Finishing: string; declare let Complete: string; declare let You_re_logged_in: string; declare let Swan_will_load_on_every_supported_page: string; declare let Happy_Shopping: string; declare let Email_verification_failed: string; declare let Email_Confirmed: string; declare let Measurements_saved: string; declare let Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements: string; declare let Check_your_email: string; declare let Tap_on_the_verification_link_sent_to: string; declare let Email_Confirmation: string; declare let Save_your_scan: string; declare let Confirm_with_a_single_tap_from_your_email_inbox: string; declare let Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo: string; declare let Passwordless_Just_one_tap_via_email: string; declare let Join_2000_shoppers: string; declare let Your_measurements_will_be_shared_only_once_your_email_is_confirmed: string; declare let Enter_your_email: string; declare let Send_confirmation_email: string; declare let No_thanks: string; declare let Video_tips_for_scanning: string; declare let Please_make_sure_to: string; declare let one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone: string; declare let two_Rotate_slowly_throughout_your_spin: string; declare let three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame: string; declare let Scan_s: string; declare let vision_model: string; declare let is_at_capacity: string; declare let We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon: string; declare let Oops: string; declare let Looks_like_this_QR_code_is_not_valid: string; declare let Reload_your_desktop_tab_to_generate_a_new_code: string; declare let Magic_link: string; declare let We_have_sent_you_a_magic_link_via_email: string; declare let Please_confirm_your_email_load_your_measurements_on_any_partner_brand: string; declare let Welcome_back: string; declare let Load_my_account: string; declare let Back_to_home: string; declare let Enter_a_valid_email: string; declare let No_measurement_found_for_this_email: string; declare let Reset: string; declare let Resume: string; declare let Start_Scan: string; declare let Scanning: string; declare let Detecting_Body: string; declare let Stop: string; declare let Generating_Measurements: string; declare let Help: string; declare let Scan_tips: string; declare let Watch_instructions_video: string; declare let Wear_form_fitting_clothing_for_the_most_accurate_results: string; declare let Position_yourself_in_a_brightly_lit_room: string; declare let Tie_up_long_hair_and_slip_off_your_shoes: string; declare let Back: string; declare let Swan: string; declare let Please_check_your_setting_for_camera_permission: string; declare let Enable_the_camera_permissions: string; declare let Go_Back: string; declare let For_helping_in_getting: string; declare let Measurements_have_been_shared: string; declare let Thank_You: string; declare let live: string; declare let Your: string; declare let Check_back_soon_to_use_Swan: string; declare let custom_for_your_next_order: string; declare let Rhodes_and_Beckett: string; declare let Send_invite: string; declare let Your_Nest: string; declare let Share_your_measurements_to_shop_and_gift_for_those_close_to_you: string; declare let Invite_to_Swan: string; declare let Name: string; declare let Enter_their_name: string; declare let Enter_their_email: string; declare let Message: string; declare let Join_Swan: string; declare let Email: string; declare let Invite: string; declare let Your_Login: string; declare let Your_Scans: string; declare let Talk_with_the_CEO: string; declare let Send_me_an_email: string; declare let At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback: string; declare let Eoin: string; declare let You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion: string; declare let Try_On: string; declare let Invite_friends: string; declare let Pending: string; declare let Decline: string; declare let gifting_simple: string; declare let Invite_friends_and_make: string; declare let Nest_will_be_able_to_see_and_size_clothes_on_you: string; declare let By_sharing_your_Swan_profile_those_in_your: string; declare let Enter_your_name: string; declare let Failed_to_get_tryon: string; declare let In_Progress: string; declare let Go_back_to: string; declare let emailStep: string; declare let nameStep: string; declare let heightStep: string; declare let genderStep: string; declare let enterEmail: string; declare let next: string; declare let validEmail: string; declare let emailRequired: string; declare let nameRequired: string; declare let enterName: string; declare let womens: string; declare let mens: string; declare let height: string; declare let heightInFt: string; declare let heightInInch: string; declare let cmMeasurementUnit: string; declare let ftMeasurementUnit: string; declare let onboarding: string; declare let noValidSteps: string; declare let unsupportedStep: string; declare let heightError: string; declare let bodyScan: string; declare let bodyScanDescription: string; declare let faceScan: string; declare let faceScanDescription: string; declare let sizeFit: string; declare let readyToStart: string; declare let readyToStartDescription: string; declare let turnUpVolume: string; declare let phonePlacement: string; declare let phonePlacementDescription: string; declare let welcome: string; declare let phoneModel: string; declare let selectPhoneBrand: string; declare let selectPhoneModel: string; declare let reset: string; declare let start: string; declare let loading: string; declare let faceVisible: string; declare let loadingVideo: string; declare let videoLoadFailed: string; declare let scanFailed: string; declare let resetScan: string; declare let clickToResetScan: string; declare let faceFront: string; declare let faceLeft: string; declare let faceRight: string; declare let faceSmile: string; declare let cameraAlreadyInUse: string; declare let tryClosingBrowser: string; declare let checkCameraSettings: string; declare let setting: string; declare let enableCameraPermissions: string; declare let scanStatus: string; declare let startScan: string; declare let pause: string; declare let restart: string; declare let startLevelCheck: string; declare let placePhoneUpright: string; declare let leavePhone: string; declare let measurementsBeingTaken: string; declare let serverAtCapacity: string; declare let serverAtCapacityDescription: string; declare let issueWithScan: string; declare let reason: string; declare let scanAgain: string; declare const export_default: { Custom_Scan: typeof Custom_Scan; Find_your_perfect_fit: typeof Find_your_perfect_fit; One_time_setup_in_2_min_or_less: typeof One_time_setup_in_2_min_or_less; PRIVACY: typeof PRIVACY; Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone: typeof Swan_encrypts_your_data_with_Ever_vault_and_ensures_your_video_is_not_seen_by_anyone; By_ticking_this_box_you_are_agreeing_to_our: typeof By_ticking_this_box_you_are_agreeing_to_our; privacy_policy: typeof privacy_policy; Get_Measured: typeof Get_Measured; Login: typeof Login; Where_do_you_shop: typeof Where_do_you_shop; Men_s: typeof Men_s; Women_s: typeof Women_s; Next: typeof Next; Preferred_language: typeof Preferred_language; Hindi: typeof Hindi; English: typeof English; French: typeof French; Spanish: typeof Spanish; German: typeof German; Italian: typeof Italian; Arabic: typeof Arabic; Phone_Model: typeof Phone_Model; Select_phone_brand: typeof Select_phone_brand; Select_phone_model: typeof Select_phone_model; Measurement_tips: typeof Measurement_tips; Tips_for_your_scan: typeof Tips_for_your_scan; Watch_this_video_to_know_how_to_scan: typeof Watch_this_video_to_know_how_to_scan; How_to_use_Swan: typeof How_to_use_Swan; Watch_this_short_video_to_know_how_to_use: typeof Watch_this_short_video_to_know_how_to_use; Shop: typeof Shop; Skip: typeof Skip; Form_fitting_clothing: typeof Form_fitting_clothing; How_form_is_fitting_your_outfit: typeof How_form_is_fitting_your_outfit; For_accurate_scan_please_wear_tight_clothing_Here_s_an_example: typeof For_accurate_scan_please_wear_tight_clothing_Here_s_an_example; Scan_with_form_fitting: typeof Scan_with_form_fitting; Scan_with_form_loose_fit: typeof Scan_with_form_loose_fit; Turn_up_your_volume: typeof Turn_up_your_volume; For_smart_voice_guide: typeof For_smart_voice_guide; Place_your_phone_on_a_table_at: typeof Place_your_phone_on_a_table_at; a_hip_height: typeof a_hip_height; Scan: typeof Scan; Height: typeof Height; Height_in_ft: typeof Height_in_ft; Height_in_inch: typeof Height_in_inch; How_tall_are_you: typeof How_tall_are_you; We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do: typeof We_are_sorry_we_currently_do_not_support_this_heights_outside_of_5_ft_and_7_ft_We_are_working_on_new_models_that_do; Confirm: typeof Confirm; To_start_your_measurement: typeof To_start_your_measurement; Scan_this_QR_code_with_your_phone: typeof Scan_this_QR_code_with_your_phone; You_can_continue_from_here_after_your_scan: typeof You_can_continue_from_here_after_your_scan; Failed_to_get_measurements: typeof Failed_to_get_measurements; No_data_found_Go_back_to: typeof No_data_found_Go_back_to; back: typeof back; Profile: typeof Profile; shopify: typeof shopify; fit_view_result: typeof fit_view_result; Nest: typeof Nest; Scan_again: typeof Scan_again; Provide_feedback: typeof Provide_feedback; Add_to_cart: typeof Add_to_cart; Back_to_product: typeof Back_to_product; Fit_Notes: typeof Fit_Notes; Fitted: typeof Fitted; Ideal_fit: typeof Ideal_fit; Relaxed: typeof Relaxed; Wrong_email_format: typeof Wrong_email_format; Something_went_wrong: typeof Something_went_wrong; Email_is_required: typeof Email_is_required; Scan_status: typeof Scan_status; Uploading: typeof Uploading; Processing: typeof Processing; Finishing: typeof Finishing; Complete: typeof Complete; You_re_logged_in: typeof You_re_logged_in; Swan_will_load_on_every_supported_page: typeof Swan_will_load_on_every_supported_page; Happy_Shopping: typeof Happy_Shopping; Email_verification_failed: typeof Email_verification_failed; Email_Confirmed: typeof Email_Confirmed; Measurements_saved: typeof Measurements_saved; Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements: typeof Login_anywhere_you_see_the_Swan_logo_to_load_your_measurements; Check_your_email: typeof Check_your_email; Tap_on_the_verification_link_sent_to: typeof Tap_on_the_verification_link_sent_to; Email_Confirmation: typeof Email_Confirmation; Save_your_scan: typeof Save_your_scan; Confirm_with_a_single_tap_from_your_email_inbox: typeof Confirm_with_a_single_tap_from_your_email_inbox; Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo: typeof Saving_your_scan_means_you_can_load_your_measurements_anywhere_you_see_the_Swan_logo; Passwordless_Just_one_tap_via_email: typeof Passwordless_Just_one_tap_via_email; Join_2000_shoppers: typeof Join_2000_shoppers; Your_measurements_will_be_shared_only_once_your_email_is_confirmed: typeof Your_measurements_will_be_shared_only_once_your_email_is_confirmed; Enter_your_email: typeof Enter_your_email; Send_confirmation_email: typeof Send_confirmation_email; No_thanks: typeof No_thanks; Video_tips_for_scanning: typeof Video_tips_for_scanning; Please_make_sure_to: typeof Please_make_sure_to; one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone: typeof one_Complete_a_full_spin_Starting_and_finishing_with_your_feet_facing_your_phone; two_Rotate_slowly_throughout_your_spin: typeof two_Rotate_slowly_throughout_your_spin; three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame: typeof three_Make_sure_your_full_body_including_feet_and_hands_are_visible_in_frame; Scan_s: typeof Scan_s; vision_model: typeof vision_model; is_at_capacity: typeof is_at_capacity; We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon: typeof We_are_sorry_about_this_We_are_working_hard_to_add_capacity_Please_try_again_soon; Oops: typeof Oops; Looks_like_this_QR_code_is_not_valid: typeof Looks_like_this_QR_code_is_not_valid; Reload_your_desktop_tab_to_generate_a_new_code: typeof Reload_your_desktop_tab_to_generate_a_new_code; Magic_link: typeof Magic_link; We_have_sent_you_a_magic_link_via_email: typeof We_have_sent_you_a_magic_link_via_email; Please_confirm_your_email_load_your_measurements_on_any_partner_brand: typeof Please_confirm_your_email_load_your_measurements_on_any_partner_brand; Welcome_back: typeof Welcome_back; Load_my_account: typeof Load_my_account; Back_to_home: typeof Back_to_home; Enter_a_valid_email: typeof Enter_a_valid_email; No_measurement_found_for_this_email: typeof No_measurement_found_for_this_email; Reset: typeof Reset; Resume: typeof Resume; Start_Scan: typeof Start_Scan; Scanning: typeof Scanning; Detecting_Body: typeof Detecting_Body; Stop: typeof Stop; Generating_Measurements: typeof Generating_Measurements; Help: typeof Help; Scan_tips: typeof Scan_tips; Watch_instructions_video: typeof Watch_instructions_video; Wear_form_fitting_clothing_for_the_most_accurate_results: typeof Wear_form_fitting_clothing_for_the_most_accurate_results; Position_yourself_in_a_brightly_lit_room: typeof Position_yourself_in_a_brightly_lit_room; Tie_up_long_hair_and_slip_off_your_shoes: typeof Tie_up_long_hair_and_slip_off_your_shoes; Back: typeof Back; Swan: typeof Swan; Please_check_your_setting_for_camera_permission: typeof Please_check_your_setting_for_camera_permission; Enable_the_camera_permissions: typeof Enable_the_camera_permissions; Go_Back: typeof Go_Back; For_helping_in_getting: typeof For_helping_in_getting; Measurements_have_been_shared: typeof Measurements_have_been_shared; Thank_You: typeof Thank_You; live: typeof live; Your: typeof Your; Check_back_soon_to_use_Swan: typeof Check_back_soon_to_use_Swan; custom_for_your_next_order: typeof custom_for_your_next_order; Rhodes_and_Beckett: typeof Rhodes_and_Beckett; Send_invite: typeof Send_invite; Your_Nest: typeof Your_Nest; Share_your_measurements_to_shop_and_gift_for_those_close_to_you: typeof Share_your_measurements_to_shop_and_gift_for_those_close_to_you; Invite_to_Swan: typeof Invite_to_Swan; Name: typeof Name; Enter_their_name: typeof Enter_their_name; Enter_their_email: typeof Enter_their_email; Message: typeof Message; Join_Swan: typeof Join_Swan; Email: typeof Email; Invite: typeof Invite; Your_Login: typeof Your_Login; Your_Scans: typeof Your_Scans; Talk_with_the_CEO: typeof Talk_with_the_CEO; Send_me_an_email: typeof Send_me_an_email; At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback: typeof At_Swan_we_are_here_to_make_shopping_about_you_I_would_love_to_hear_what_you_think_of_Swan_and_what_you_want_to_see_next_I_am_excited_to_hear_your_feedback; Eoin: typeof Eoin; You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion: typeof You_can_close_this_tab_and_return_to_the_original_to_get_your_sizing_suggestion; Try_On: typeof Try_On; Invite_friends: typeof Invite_friends; Pending: typeof Pending; Decline: typeof Decline; gifting_simple: typeof gifting_simple; Invite_friends_and_make: typeof Invite_friends_and_make; Nest_will_be_able_to_see_and_size_clothes_on_you: typeof Nest_will_be_able_to_see_and_size_clothes_on_you; By_sharing_your_Swan_profile_those_in_your: typeof By_sharing_your_Swan_profile_those_in_your; Enter_your_name: typeof Enter_your_name; Failed_to_get_tryon: typeof Failed_to_get_tryon; In_Progress: typeof In_Progress; Go_back_to: typeof Go_back_to; emailStep: typeof emailStep; nameStep: typeof nameStep; heightStep: typeof heightStep; genderStep: typeof genderStep; enterEmail: typeof enterEmail; next: typeof next; validEmail: typeof validEmail; emailRequired: typeof emailRequired; nameRequired: typeof nameRequired; enterName: typeof enterName; womens: typeof womens; mens: typeof mens; height: typeof height; heightInFt: typeof heightInFt; heightInInch: typeof heightInInch; cmMeasurementUnit: typeof cmMeasurementUnit; ftMeasurementUnit: typeof ftMeasurementUnit; onboarding: typeof onboarding; noValidSteps: typeof noValidSteps; unsupportedStep: typeof unsupportedStep; heightError: typeof heightError; bodyScan: typeof bodyScan; bodyScanDescription: typeof bodyScanDescription; faceScan: typeof faceScan; faceScanDescription: typeof faceScanDescription; sizeFit: typeof sizeFit; readyToStart: typeof readyToStart; readyToStartDescription: typeof readyToStartDescription; turnUpVolume: typeof turnUpVolume; phonePlacement: typeof phonePlacement; phonePlacementDescription: typeof phonePlacementDescription; welcome: typeof welcome; phoneModel: typeof phoneModel; selectPhoneBrand: typeof selectPhoneBrand; selectPhoneModel: typeof selectPhoneModel; reset: typeof reset; start: typeof start; loading: typeof loading; faceVisible: typeof faceVisible; loadingVideo: typeof loadingVideo; videoLoadFailed: typeof videoLoadFailed; scanFailed: typeof scanFailed; resetScan: typeof resetScan; clickToResetScan: typeof clickToResetScan; faceFront: typeof faceFront; faceLeft: typeof faceLeft; faceRight: typeof faceRight; faceSmile: typeof faceSmile; cameraAlreadyInUse: typeof cameraAlreadyInUse; tryClosingBrowser: typeof tryClosingBrowser; checkCameraSettings: typeof checkCameraSettings; setting: typeof setting; enableCameraPermissions: typeof enableCameraPermissions; scanStatus: typeof scanStatus; startScan: typeof startScan; pause: typeof pause; restart: typeof restart; startLevelCheck: typeof startLevelCheck; placePhoneUpright: typeof placePhoneUpright; leavePhone: typeof leavePhone; measurementsBeingTaken: typeof measurementsBeingTaken; serverAtCapacity: typeof serverAtCapacity; serverAtCapacityDescription: typeof serverAtCapacityDescription; issueWithScan: typeof issueWithScan; reason: typeof reason; scanAgain: typeof scanAgain; }; interface Step { type: StepType; value?: any; order?: number; isVisible?: boolean; onStepComplete?: (value: any) => Promise | void; } type Gender = "male" | "female"; type StepType = "email" | "name" | "height" | "gender"; type PreferredLanguageType = `${PreferredLanguage}`; interface StyleConfig { base?: { brandColor?: string; backgroundColor?: string; primaryColor?: string; secondaryColor?: string; baseTextColor?: string; baseFontSize?: string; baseFontFamily?: string; }; logo?: { logoWidth?: string; logoHeight?: string; }; heading?: { headingColor?: string; headingFontSize?: string; headingFontWeight?: string; headingFontFamily?: string; }; subheading?: { subheadingColor?: string; subheadingFontSize?: string; subheadingFontWeight?: string; subheadingFontFamily?: string; }; button?: { buttonBackground?: string; buttonDisabledBackground?: string; buttonDisabledTextColor?: string; buttonTextColor?: string; buttonFontSize?: string; buttonFontFamily?: string; buttonBorderRadius?: string; priority?: { buttonBackground?: string; buttonTextColor?: string; buttonDisabledTextColor?: string; justify?: string; padding?: string; }; }; input?: { inputBackgroundColor?: string; inputTextColor?: string; inputPlaceholderColor?: string; inputBorderColor?: string; inputFontSize?: string; inputFontWeight?: string; inputBorderRadius?: string; inputErrorColor?: string; inputErrorFontSize?: string; priority?: { inputBackgroundColor?: string; inputTextColor?: string; inputBackgroundColorSelect?: string; inputBackgroundColorSelectTextColor?: string; inputPlaceholderColor?: string; }; }; angleDetector?: { successAngleBackground?: string; successAngleLowBackground?: string; successAngleTextLightColor?: string; successAngleTextDarkColor?: string; }; } interface OnboardingProps { steps: Step[]; config?: Config; /** Show the step progress dots above the heading. Defaults to true. */ showProgressBar?: boolean; onComplete?: (values: Record) => void; onDeviceDetected?: (deviceInfo: FocalLengthOuput) => void; } /** A key of the built-in text dictionary, e.g. "readyToStart". */ type TranslationKey = keyof typeof export_default; /** Text overrides, applied on top of whichever language is selected. */ type Translations = Partial>; /** Per-gender media for one educational screen. `video` may also be an image URL. */ type GenderedMedia = Partial>; type EducationalScreenId = "body" | "face" | "sizeFit" | "ready"; interface Config { style?: StyleConfig; logo?: string; loader?: string; language?: PreferredLanguageType; translations?: Translations; assets?: { educational?: Partial>; }; } interface FocalLengthOuput { brandName: string; modelName: string; focalLength: number; } interface FocalLengthProps { onComplete?: (value: FocalLengthOuput) => Promise | void; config?: Config; /** Heading text. Falls back to the shared "Welcome" heading when omitted. */ title?: string; /** Show the heading at all. Defaults to true. */ showTitle?: boolean; } interface sectionsType { full: "full"; body: "body"; face: "face"; } interface EducationalProps { gender?: GenderType; sections?: sectionsType[keyof sectionsType][]; config?: Config; onComplete?: () => void; isCustom?: boolean; startStep?: 1 | 2 | 3; /** Step 1 shows only the "Ready to start?" screen; the steps after it run as * usual. `isCustom` does not apply to step 1 when set. */ readyOnly?: boolean; } interface BodyScanBaseProps { config?: Config; onRetry?: () => void; onScanStart?: () => void; onCaptureComplete?: () => void; onUploadStart?: () => void; onUploadEnd?: () => void; onMeasurementSocketStart?: () => void; onMeasurementSocketClose?: () => void; onScanSuccess?: (data: any) => void; onScanError?: (errorDetails: any) => void; onIntermediateScanSuccess?: (data: any) => void; onComplete?: () => void; onCustomScanSuccess?: () => void; } type BodyScanTerminalStateProps = BodyScanBaseProps & ({ isError: true; isSuccess?: boolean; userDetails?: Partial; token?: string; } | { isSuccess: true; isError?: boolean; userDetails?: Partial; token?: string; }); type BodyScanActiveScanProps = BodyScanBaseProps & { isError?: false; isSuccess?: false; userDetails: UserDetails; token: string; }; type BodyScanProps = BodyScanTerminalStateProps | BodyScanActiveScanProps; interface UserDetails { email: string; userName?: string; shopDomain: string; gender: Gender; heightInCm: number; scanType: string; deviceFocalLength: number; deviceModelName: string; callbackUrl?: string | null; sourceTag?: string; } interface FaceScanMetaData { email: string; shopDomain: string; gender: Gender; deviceFocalLength: number; callbackUrl?: string | null; bodyScanId?: string; } interface FaceScanBaseProps { onScanSuccess?: (data: any) => void; /** * A non-final result, mirroring BodyScan's callback of the same name. * * Its own callback rather than an `onScanSuccess` the host has to inspect: a * host treating `onScanSuccess` as "the face scan is done" would otherwise * advance on the intermediate and then receive a second `onScanSuccess` for * the final, indistinguishable without reading `resultType`. */ onIntermediateScanSuccess?: (data: any) => void; onScanError?: (data: any) => void; onRetry?: () => void; onScanStart?: () => void; onCaptureComplete?: () => void; onUploadStart?: () => void; onUploadEnd?: () => void; onMeasurementSocketStart?: () => void; onMeasurementSocketClose?: () => void; config?: Config; } type FaceScanTerminalStateProps = FaceScanBaseProps & ({ isError: true; isSuccess?: boolean; } | { isSuccess: true; isError?: boolean; }) & { userDetails?: FaceScanMetaData; token?: string; }; type FaceScanActiveScanProps = FaceScanBaseProps & { isError?: false; isSuccess?: false; userDetails: FaceScanMetaData; token: string; }; type FaceScanProps = FaceScanTerminalStateProps | FaceScanActiveScanProps; export { GenderType as G, PreferredLanguage as P }; export type { BodyScanProps as B, Config as C, EducationalProps as E, FocalLengthProps as F, OnboardingProps as O, Step as S, TranslationKey as T, UserDetails as U, EducationalScreenId as a, FaceScanMetaData as b, FaceScanProps as c, FocalLengthOuput as d, GenderedMedia as e, StyleConfig as f, Translations as g };