import type { ProgressOptions, ResolvedProgress } from '@loader-kit/spec/lite'; import type { ReactNode } from 'react'; import type { ColorValue, ViewProps, ViewStyle } from 'react-native'; import type { NativeProps } from './LoaderKitProgressViewNativeComponent'; import type { ReduceMotion } from './nativeProps'; /** The progress views have no `always`: they follow the system or keep their motion. */ export type ProgressReduceMotion = Exclude; export interface LoaderKitProgressProps extends ProgressOptions, ViewProps { /** Progress in [0, 1]; null or undefined shows the indeterminate animation. */ value?: number | null; /** Buffer of linear `flat` and `wavy`, in [0, 1]. */ buffer?: number | null; /** * Move to a new value along a curve that follows the rhythm of the updates and never passes * the real value, rather than jump to it. Default true. */ smooth?: boolean; /** Width of every type but linear and border. Default 48. */ size?: number; /** Default: the accent color of the platform. */ color?: ColorValue; /** Default: `color` at 24% opacity. */ trackColor?: ColorValue; /** Color of the percentage. Default: the text color of the platform. */ labelColor?: ColorValue; /** * `system` (default) jumps to new values, stops the waves, stripes and sheens and slows the * indeterminate animation while the system asks for reduced motion; `never` keeps the motion. */ reduceMotion?: ProgressReduceMotion; /** * Drawn over the progress. The types with a `size` center them (a stop button in a circular * progress, for example); border frames them. */ children?: ReactNode; } /** The box of each type, which React lays out: native code fills whatever box it gets. */ export declare function progressLayoutStyle(p: ResolvedProgress, size: number | undefined): ViewStyle; export interface ProgressViews { /** Props of the container `View`: the View props of LoaderKitProgress, with the box of the type. */ container: ViewProps; /** Props of the native drawing, which fills the container behind the children. */ drawing: NativeProps; children?: ReactNode; } export declare function toProgressViews(props: LoaderKitProgressProps): ProgressViews; //# sourceMappingURL=progressProps.d.ts.map