import type { JSX } from 'solid-js'; import type { TransitionHooks } from '../../states/create-transition-state'; import type { UnmountableProps } from '../../utils/create-unmountable'; import type { HeadlessPropsWithRef, ValidConstructor } from '../../utils/dynamic-prop'; import type { Prettify } from '../../utils/types'; export interface TransitionRootBaseProps { show: boolean; } export interface TransitionBaseChildProps extends UnmountableProps, TransitionHooks { appear?: boolean; enter?: string; enterFrom?: string; enterTo?: string; entered?: string; leave?: string; leaveFrom?: string; leaveTo?: string; } export type TransitionChildProps = HeadlessPropsWithRef; /** * A {@link Transition} that follows its parent transition instead of its own * `show` prop, so several elements can animate together on different timings. * * Renders a `
` by default. * * @see {@link https://github.com/lxsmnsyc/terracotta/blob/main/docs/components/transition.md} */ export declare function TransitionChild(props: TransitionChildProps): JSX.Element; export type TransitionProps = Prettify>; /** * Applies enter and leave classes around a `show` prop, and keeps its children * mounted until the leave transition finishes. It only adds and removes * classes; the animation itself is yours to write. * * Renders a `
` by default. * * @see {@link https://github.com/lxsmnsyc/terracotta/blob/main/docs/components/transition.md} */ export declare function Transition(props: TransitionProps): JSX.Element; //# sourceMappingURL=index.d.ts.map