UNPKG

@sheerid/jslib-nightly

Version:

SheerID JavaScript Library

35 lines (34 loc) 2.65 kB
import { InjectedIntl } from 'react-intl'; import { Country, EstimatedReviewTime, FaqUrl, Locale, MarketConsentOptions, MaxReviewTime, MetadataConfig, Options, Organization, ProgramTheme, ProgramThemeMessages, Segment, State, VerificationServiceValues, ViewModel } from '../types/types'; export declare const getCompanyName: (programTheme: ProgramTheme) => string; export declare const getMetadataConfig: (programTheme: ProgramTheme) => MetadataConfig; export declare const getMarketConsent: (programTheme: ProgramTheme) => MarketConsentOptions; export declare const getThemeMessages: (programTheme: ProgramTheme) => ProgramThemeMessages; export declare const getCustomCss: (programTheme: ProgramTheme) => ProgramTheme["themeChoices"]["customCss"]; export declare const getLogoUrl: (programTheme: ProgramTheme) => ProgramTheme["themeChoices"]["logoUrl"]; export declare const getPrivacyPolicyUrl: (programTheme: ProgramTheme) => ProgramTheme["privacyPolicyUrl"]; export declare const getPrivacyPolicyCompanyName: (programTheme: ProgramTheme, intl: InjectedIntl) => string; /** * @description Return locales configured in MySheerID for this program, or specified in Javascript options. */ export declare const getAvailableLocales: (programTheme: ProgramTheme) => Locale[]; /** * @private */ export declare const getLocalesFromOptions: (options: Options) => Locale[]; /** * @description Safely return the countries that were chosen/configured in MySheerID for this program. * Otherwise, return US as default. */ export declare const getConfiguredCountries: (programTheme: ProgramTheme) => Country[]; /** * @description Safely return the states that were chosen/configured in MySheerID for this program. */ export declare const getConfiguredStates: (programTheme: ProgramTheme) => State[]; export declare const getEstimatedReviewTime: (programTheme: ProgramTheme) => EstimatedReviewTime; export declare const getMaxReviewTime: (programTheme: ProgramTheme) => MaxReviewTime; export declare const getFaqLink: (programTheme: ProgramTheme, segment: Segment, programId: VerificationServiceValues["programId"], locale: Locale, verificationResponse?: VerificationServiceValues["verificationResponse"]) => FaqUrl; export declare const getOrgSearchCountryTags: (programTheme: any, country: Country) => string; export declare const orgToString: (item: Organization) => string; export declare const getOrgSearchAffiliationOverrides: (searchParams: URLSearchParams, viewModel: ViewModel, programTheme: ProgramTheme) => URLSearchParams | undefined; export declare const getOrgSearchUrl: (viewModel: ViewModel, programTheme: ProgramTheme) => string | undefined;