UNPKG

framer-motion

Version:

An open source and production-ready motion library for React on the web

31 lines (30 loc) • 1.16 kB
import { ValueType } from "style-value-types"; /** * ValueType for "auto" */ export declare const auto: ValueType; /** * Tests a dimensional value against the list of dimension ValueTypes */ export declare const findDimensionValueType: (v: any) => ValueType | undefined; /** * Tests a value against the list of ValueTypes */ export declare const findValueType: (v: any) => ValueType | { test: (v: any) => boolean; /** * ValueType for ints */ parse: (v: string) => (number | import("style-value-types").RGBA | import("style-value-types").HSLA)[]; createTransformer: (v: string) => (v: (string | number | import("style-value-types").RGBA | import("style-value-types").HSLA)[]) => string; getAnimatableNone: (v: string) => string; } | undefined; /** * Gets the default ValueType for the provided value key */ export declare const getDefaultValueType: (key: string) => ValueType; /** * Provided a value and a ValueType, returns the value as that value type. */ export declare const getValueAsType: (value: any, type?: ValueType | undefined) => any; export declare function getAnimatableNone(key: string, value: string): any;