import type { TextStyle, ViewStyle } from 'react-native'; import type { PlatformBlocksTheme } from '../../core/theme/types'; import { SizeValue } from '../../core/theme/sizes'; import type { AccordionProps, AccordionComputedStyles } from './types'; /** * Resolve the accent shades used to emphasize the expanded item from the * `color` prop. Shade 5 is the base brand color in both light and dark themes; * shade 6 stays readable as text on either background. Falls back to gray. */ export declare const resolveAccent: (theme: PlatformBlocksTheme, color: AccordionProps["color"]) => { main: any; text: any; }; export interface AccordionAccentStyles { activeHeaderText: TextStyle; activeItem: ViewStyle; /** * Chevron tint while expanded. Left undefined when no accent is set so the * chevron keeps its resting color — the open state reads from the rotation * and bolded title, not from a shift in icon weight. */ activeChevronColor?: string; } /** * Build the expanded-item emphasis styles for a given color. Shared by the * accordion-level `color` prop and per-item `color` overrides so a single * accordion can mix accents. * * With no `color` set (the default) the expanded item stays neutral — the open * state reads from the bolded title and the rotated chevron alone, with no color * tint or surface fill. A brand accent is opt-in via the `color` prop. */ export declare const buildAccentStyles: (theme: PlatformBlocksTheme, color: AccordionProps["color"]) => AccordionAccentStyles; type VariantTokenFn = (theme: PlatformBlocksTheme, radiusStyles: any) => { container: any; item: any; header: any; content: any; }; export declare const accordionVariants: Record; export declare const getAccordionStyles: (theme: PlatformBlocksTheme, variant: AccordionProps["variant"], size: SizeValue | undefined, color: AccordionProps["color"], radiusStyles: any | undefined, density?: AccordionProps["density"]) => AccordionComputedStyles & { activeHeaderText: TextStyle; disabledHeaderText: TextStyle; activeItem: ViewStyle; activeChevronColor?: string; }; export default getAccordionStyles;