import { ActiveSession, Payment, PaymentSession, SchemeOption, SchemeOptions, Theme } from "@imburseag/types"; import { LDFlagChangeset, LDFlagSet } from "launchdarkly-js-client-sdk"; import { CreateCheckoutAppComponentParams, CreateMandateAppComponentParams, Environment, IntegrationMode, Nullable, SupportedLanguages, SupportedModes, ThemeCSSVariables as SupportedCSSVariables } from "./types"; export declare const isSupportedLanguage: (language: string) => language is SupportedLanguages; export declare const isSupportedCSSVariable: (key: string) => key is SupportedCSSVariables; export declare const getAppComponentScriptSrc: (baseURL: string, componentName: string, version?: Nullable) => string; export declare const getWalletRedirectURL: (baseURL: string, sessionId: string, returnURL: string, token: string) => string; export declare const getOptionFromSessionOptionsById: (options: SchemeOptions | undefined, optionId: string) => SchemeOption | undefined; export declare const setCSSVariablesForThemeOnElement: (element: HTMLElement, theme: Theme) => void; export declare const createAppComponentElementForCheckout: (params: CreateCheckoutAppComponentParams) => HTMLElement; export declare const createAppComponentElementForMandate: ({ token, sessionType, language, baseURL, returnURL, componentName, appBrandName, appID, sessionID, action, mandateId, customerType, customer, agreement, authorizationSource, authorizationFrequency, authorizationFrequencyOtherWording }: CreateMandateAppComponentParams) => HTMLElement; export declare const createAppComponentElement: (token: string, apiBaseURL: string, session: ActiveSession, option: SchemeOption, language: SupportedLanguages, returnUrl: string) => HTMLElement; export declare const createAppScriptElement: (componentName: string, srcBaseURL: string, latestVersion?: Nullable) => HTMLScriptElement; export declare const isComponentEnabled: (flags: Record, componentName?: string) => boolean; export declare const getValidPaymentsForSession: (flags: Record, session: PaymentSession) => Payment[] | undefined; export declare const getUpdatedFlagsFromFlagChangeset: (flags: LDFlagChangeset) => Record; export declare const getCheckoutFlags: (flags: LDFlagSet) => Record; export declare const getBaseUrl: (mode?: SupportedModes) => string; export declare const ensureUrlEncoded: (value: string) => string; export declare const isSessionExpired: (expiryDate: number) => boolean; export declare const clearElementChildren: (parent: HTMLElement) => void; export declare const loadPaymentMethodComponent: (token: string, settings: Environment, session: ActiveSession, option: SchemeOption, language: SupportedLanguages, returnUrl: string, targetElement: HTMLElement) => Promise; export declare const logComponentLoadFailure: (viewName: string, option?: SchemeOption | null) => void; export declare const getIntegrationMode: (apiBaseUrl: string) => IntegrationMode;