declare namespace Utils { /** * The smoothstep function, returning a smooth gradient between two points. * See https://en.wikipedia.org/wiki/Smoothstep * * @param {number} start * @param {number} end * @param {number} point * @returns {number} interpolatedPoint */ export function smoothStep(start: number, end: number, point: number): number; interface ISmoothUpdateArguments { startValue: number; endValue: number; msTotal?: number; msPerStep?: number; callback: (currentValue: number) => boolean; easing?: (start: number, end: number, point: number) => number; } /** * Updates a given value asynchronously over time using an easing function. * * @param args * @param args.startValue - value to start at * @param args.endValue - value to end at * @param args.msTotal=500 - milliseconds taken to update * @param args.msPerStep=10 - milliseconds per individual step * @param args.callback - callback after each step; return false to stop updating * @param args.easing=smoothStep - easing function for making updates smoother */ export function smoothUpdate(args: ISmoothUpdateArguments): Promise; interface IMediaQueryBetweenArgs { minPx?: number; maxPx?: number; } /** * Returns a media query string between two pixel arguments. * The higher amount will be calculated as maxPx - 1 to account for overlaps. * * If higher isn't provided, there will be no maximum. * If lower isn't provided, there will be no minimum. */ export function mediaQueryBetweenSizes(args: IMediaQueryBetweenArgs): string; export {}; } export { Utils };