UNPKG

@number-flow/vue

Version:

A component to transition and format numbers.

70 lines (54 loc) 2.2 kB
import { ComponentOptionsMixin } from 'vue'; import { ComponentProvideOptions } from 'vue'; import { ComputedRef } from 'vue'; import { DefineComponent } from 'vue'; import { Format } from 'number-flow/lite'; import { MaybeRefOrGetter } from 'vue'; import { default as NumberFlowElement } from 'number-flow/lite'; import { Props as Props_2 } from 'number-flow/lite'; import { PublicProps } from 'vue'; import { Ref } from 'vue'; import { Trend } from 'number-flow/lite'; import { Value } from 'number-flow/lite'; declare const __VLS_component: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; declare function __VLS_template(): { slots: { default?(_: {}): any; }; refs: {}; attrs: Partial<{}>; }; declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>; declare type __VLS_WithTemplateSlots<T, S> = T & { new (): { $slots: S; }; }; declare const _default: DefineComponent<Props, { el: Ref<NumberFlowElement | undefined, NumberFlowElement | undefined>; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & { animationsstart: () => any; animationsfinish: () => any; }, string, PublicProps, Readonly<Props> & Readonly<{ onAnimationsstart?: (() => any) | undefined; onAnimationsfinish?: (() => any) | undefined; }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; export default _default; export { Format } export { NumberFlowElement } export declare const NumberFlowGroup: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>; declare type Props = Partial<Props_2> & { locales?: Intl.LocalesArgument; format?: Format; value: Value; prefix?: string; suffix?: string; willChange?: boolean; }; export { Trend } export declare function useCanAnimate({ respectMotionPreference }?: { respectMotionPreference?: MaybeRefOrGetter<boolean>; }): ComputedRef<boolean>; export { Value } export * from "number-flow/plugins"; export { }