/** * @license * Copyright 2026 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import * as React from "react"; import { BaseTransitionProps } from "./use-transition-state.js"; /** M3 easing tokens with their spec values as fallbacks. */ export declare const EASING: { readonly standard: "var(--md-sys-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1))"; readonly standardDecelerate: "var(--md-sys-motion-easing-standard-decelerate, cubic-bezier(0, 0, 0, 1))"; readonly standardAccelerate: "var(--md-sys-motion-easing-standard-accelerate, cubic-bezier(0.3, 0, 1, 1))"; readonly emphasizedDecelerate: "var(--md-sys-motion-easing-emphasized-decelerate, cubic-bezier(0.05, 0.7, 0.1, 1))"; readonly emphasizedAccelerate: "var(--md-sys-motion-easing-emphasized-accelerate, cubic-bezier(0.3, 0, 0.8, 0.15))"; }; /** How one style transition looks; everything else (state machine, cloning, timing) is shared. */ export interface TransitionSpec
{ enter: { easing: string; fallbackMs: number; }; exit: { easing: string; fallbackMs: number; }; /** CSS properties that animate, in `transition` / `will-change` order. */ properties: readonly string[]; /** The values of those properties for the current visual state. */ style(state: { visible: boolean; childStyle: React.CSSProperties | undefined; props: P; }): React.CSSProperties; } /** * Builds a transition component that clones its single child with an inline style: the visual * state comes from `spec.style`, the `transition` and `will-change` declarations from the spec. */ export declare function createTransition
(name: string, spec: TransitionSpec
): (props: P) => React.ReactElement | null; //# sourceMappingURL=create-transition.d.ts.map