/**
 * Lightweight cancellation token for transitions.
 * Use this when you want a cheap, synchronous cancel path without errors.
 *
 * @returns {{ canceled: boolean }}
 */
export function createCancelToken(): {
    canceled: boolean;
};
/**
 * @param {TransitionOptions} options
 *
 * @typedef {Object} TransitionOptions
 * @prop {number} [from] default: 0
 * @prop {number} [to] default: 1
 * @prop {number} [duration] in milliseconds, default: 1000
 * @prop {number} [delay] milliseconds to wait before the transition starts, default: 0
 * @prop {function(number):void} onUpdate
 * @prop {function(number):number} [easingFunction] default: linear
 * @prop {function(function(number):void):void} [requestAnimationFrame]
 *      default: window.requestAnimationFrame
 * @prop {AbortSignal} [signal]
 * @prop {{ canceled: boolean }} [cancelToken]
 *      Prefer this for internal transitions where cancellation is expected and should be cheap.
 *      The transition resolves immediately when canceled and does not throw or reject.
 *      Use AbortSignal when you need external orchestration or standardized cancellation.
 */
export default function transition(options: TransitionOptions): Promise<any>;
export type TransitionOptions = {
    /**
     * default: 0
     */
    from?: number;
    /**
     * default: 1
     */
    to?: number;
    /**
     * in milliseconds, default: 1000
     */
    duration?: number;
    /**
     * milliseconds to wait before the transition starts, default: 0
     */
    delay?: number;
    onUpdate: (arg0: number) => void;
    /**
     * default: linear
     */
    easingFunction?: (arg0: number) => number;
    /**
     * default: window.requestAnimationFrame
     */
    requestAnimationFrame?: (arg0: (arg0: number) => void) => void;
    signal?: AbortSignal;
    /**
     * Prefer this for internal transitions where cancellation is expected and should be cheap.
     * The transition resolves immediately when canceled and does not throw or reject.
     * Use AbortSignal when you need external orchestration or standardized cancellation.
     */
    cancelToken?: {
        canceled: boolean;
    };
};
//# sourceMappingURL=transition.d.ts.map