import type { MotionStyle } from "framer-motion"; import type { Rect } from "../../types/Rect.js"; import type { Size } from "../../types/Size.js"; import React from "react"; import { Animatable, AnimatableObject, Cancel } from "../../../animation/Animatable/index.js"; import { BorderStyle } from "../../style/BorderComponent.js"; import { DeprecatedVisualProperties } from "../../style/collectVisualStyleFromProps.js"; import { DeprecatedTransformProperties } from "../../traits/Transform.js"; import { ImageFit } from "../../types/BackgroundImage.js"; import { ConstraintProperties } from "../../types/Constraints.js"; import { ConstraintsContext } from "../../types/NewConstraints.js"; import { Layer, LayerProps } from "../Layer.js"; /** @internal */ export declare function cssBackgroundSize(size: ImageFit | undefined): "contain" | "cover" | "100% 100%"; /** @public */ export interface DeprecatedFrameProperties extends ConstraintProperties, DeprecatedTransformProperties, DeprecatedVisualProperties { /** * Determines whether the Frame is current visible. Set to `true` by default. * @remarks * ```jsx * function App() { * return * } * ``` */ visible: boolean; /** * An optional name for the Frame. * @remarks * ```jsx * function App() { * return * } * ``` */ name?: string; /** * Set to `true` to enable backface-visibility. * @remarks * ```jsx * function App() { * return * } * ``` */ backfaceVisible?: boolean | Animatable; /** * Set the perspective on the z-plane. * @remarks * ```jsx * function App() { * return * } * ``` */ perspective?: number | Animatable; /** * Set to `true` to preserve 3D. * @remarks * ```jsx * function App() { * return * } * ``` */ preserve3d?: boolean | Animatable; /** * A border width for the frame. Can be either a single number for all sides or * an object describing each side. Set to `0` by default. * @remarks * ```jsx * function App() { * return * } * ``` */ borderWidth: number | Partial<{ top: number; bottom: number; left: number; right: number; }>; /** * A border color for the Frame. Set to `"#222"` by default. * @remarks * ```jsx * function App() { * return * } * ``` */ borderColor: string; /** * A border style for the Frame. One of `"solid", "dashed", "dotted"` or `"double"`. Set to `"solid"` by default. * @remarks * ```jsx * function App() { * return * } * ``` */ borderStyle: BorderStyle; /** * Additional CSSProperties to apply to the frame. Usage is exactly the same as with the * standard React style prop. * @remarks * ```jsx * function App() { * return * } * ``` */ style?: React.CSSProperties; /** * An optional className for the Frame. * @remarks * ```jsx * function App() { * return * } * ``` */ className?: string; /** @internal */ _overrideForwardingDescription?: { [key: string]: string; }; /** @internal */ _initialStyle?: Partial; } interface DeprecatedFrameState { size: AnimatableObject | Size | null; } /** @public */ export interface DeprecatedCoreFrameProps extends DeprecatedFrameProperties, LayerProps { } declare class DeprecatedFrameType extends Layer { context: React.ContextType; static supportsConstraints: boolean; static defaultFrameSpecificProps: DeprecatedFrameProperties; static readonly defaultProps: DeprecatedCoreFrameProps; static rect(props: Partial): Rect; get rect(): Rect; element: HTMLDivElement | null; imageDidChange: boolean; state: DeprecatedFrameState; static getDerivedStateFromProps(nextProps: Partial, prevState: DeprecatedFrameState): DeprecatedFrameState | null; static updatedSize(props: Partial, state: DeprecatedFrameState): AnimatableObject | Size; getStyle(): React.CSSProperties; propsObserver: AnimatableObject; propsObserverCancel?: Cancel; sizeObserver: AnimatableObject; sizeObserverCancel?: Cancel; layoutChildren(): (React.ReactElement> | React.FunctionComponentElement<{ _forwardedOverrides: { [key: string]: any; }; }>)[] | null | undefined; } /** * @public */ export declare const DeprecatedFrame: typeof DeprecatedFrameType; export declare function Center(props: { children?: React.ReactNode; style?: React.CSSProperties; }): JSX.Element; export {}; //# sourceMappingURL=DeprecatedFrame.d.ts.map