import type { PressableProps, ViewStyle } from 'react-native'; import { IconString } from './icon'; import type { ButtonAppearanceUnion } from './utils/button_colors'; declare const SIZES: { readonly sm: "sm"; readonly md: "md"; readonly lg: "lg"; }; type SizeUnion = (typeof SIZES)[keyof typeof SIZES]; type VariantUnion = 'fill' | 'outline'; export interface ButtonProps extends PressableProps { /** * Specifies whether fonts should be scaled down automatically to fit given style constraints. */ adjustsFontSizeToFit?: boolean; /** * Specifies whether fonts should scale to respect the device's text size accessibility settings. The default is true. */ allowFontScaling?: boolean; /** * Updates the button's colors */ appearance?: ButtonAppearanceUnion; /** * Styles the outer LinearGradient that gives the button its background and outline color */ colorWrapperStyles?: ViewStyle; /** * Styles the inner View that wraps the button's content */ contentWrapperStyles?: ViewStyle; /** * Generates an icon to the left of the button text */ iconNameLeft?: IconString; /** * Generates an icon to the right of the button text */ iconNameRight?: IconString; /** * Disables the button and replaces its content with a spinner */ loading?: boolean; /** * Specifies the maximum size a font can reach when allowFontScaling is enabled. */ maxFontSizeMultiplier?: number; /** * Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0). */ minimumFontScale?: number; /** * Changes the overall size of the button and its contents */ size?: SizeUnion; /** * Renders as text within the button */ title: string; /** * Fill buttons are visually more propmonitent then outline buttons */ variant?: VariantUnion; } export declare function Button({ adjustsFontSizeToFit, allowFontScaling, appearance, contentWrapperStyles, colorWrapperStyles, disabled, iconNameLeft, iconNameRight, loading, maxFontSizeMultiplier, minimumFontScale, size, title, variant, style, ...props }: ButtonProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=button.d.ts.map