declare const INITIAL_VALUE: unique symbol; /** * 当value改变时,通过onChange通知。 */ export declare const useValueWatcher: { ({ value, onChange, judgeChange, onInit, }: { value: Value; onChange: (prev: Value, current: Value) => void; judgeChange?: ((prev: Value, current: Value) => boolean) | undefined; onInit?: ((current: Value) => void) | undefined; }): void; INITIAL_VALUE: typeof INITIAL_VALUE; }; /** * - 当data改变时,会记录transition的开始(并发出`onStarted`事件)。 * - 当useTransitionController返回的回调函数(`returnVal[1]`)被调用时,会记录transition的完成(并发出`onCompleted`事件)。 * - 如果上一个transition还没有完成,data又改变了,会发出transition的取消事件(`onCancled`)。 */ export declare const useTransitionController: ({ onStarted, onCancled, onCompleted, data, }: { onStarted?: ((startedData: Data) => void) | undefined; onCancled?: ((cancledData: Data, newData: Data) => void) | undefined; onCompleted?: ((completedData: Data) => void) | undefined; data: Data; }) => [boolean, () => void]; export {}; //# sourceMappingURL=utils.d.ts.map