import type { SwappedTheme } from '@funkit/connect-core'; import type { ThemeVars } from '../css/sprinkles.css'; export { getFormOfPaymentDisplayName, getSavedFormOfPaymentDisplayName, getSavedFormOfPaymentIcon, getSwappedIcon, getSwappedOrigin, isSavedFormOfPaymentType, isSwappedOrigin, SWAPPED_CARD_BRANDS, } from '@funkit/connect-core'; export type { SwappedTheme }; /** Rewrites the color functions Swapped can't parse as hex; passes the rest through. */ export declare function normalizeSwappedColor(value: string): string; export declare function resolveCssValue(value: string, scope: Element | null): string; export declare function resolveObjectCssVars(obj: T, scope: Element | null): T; /** * Builds the SwappedTheme payload from a ThemeVars object. Pure — it does not * touch the DOM, so it is safe to share across platforms. * * Pass an already-resolved theme: `topbarPaddingX` is composed as * `calc( + 6px)`, and {@link resolveCssValue} only matches values that * are entirely a `var(...)` ref, so anything wrapped in `calc()` here can no * longer be resolved afterwards. Web callers use {@link resolveObjectCssVars}. */ export declare function buildSwappedTheme(theme: ThemeVars & { customFontFamily?: { primary?: string; secondary?: string; }; }, isDarkMode: boolean): SwappedTheme; /** * Maps a *resolved* ThemeVars into Swapped's theme query params. Pure — it does * not touch the DOM. Web callers must pass a theme whose CSS vars are already * resolved (via {@link resolveObjectCssVars}) so colors are concrete hex and the * leading `#` can be stripped; non-web callers must pass concrete values. */ export declare function buildSwappedThemeQueryParams(resolvedTheme: ThemeVars): Record;