UNPKG

react-native-plugpag-nitro

Version:

High-performance React Native library for PagSeguro PlugPag payment terminals with TypeScript-first hooks API, real-time events, and 10x faster performance using Nitro Modules

26 lines 1.01 kB
import type { PlugpagStyleData } from './PlugpagNitro.nitro'; /** * Theme utility functions for PagBank SDK styling */ export declare class ThemeUtils { /** * Validates that all color values in a theme are valid hex colors * @param theme PlugpagStyleData to validate * @returns Array of validation errors (empty if valid) */ static validateTheme(theme: PlugpagStyleData): string[]; /** * Merges a partial theme with a base theme * @param baseTheme Base theme to extend * @param partialTheme Partial theme with overrides * @returns Complete merged theme */ static mergeThemes(baseTheme: PlugpagStyleData, partialTheme: Partial<PlugpagStyleData>): PlugpagStyleData; /** * Creates a theme preview object for debugging * @param theme Theme to preview * @returns Object with color swatches for visualization */ static createThemePreview(theme: PlugpagStyleData): Record<string, string>; } //# sourceMappingURL=themes.d.ts.map