import "./auto_sizer.css"; import type * as React from "react"; import { useRender } from "@base-ui/react/use-render"; import { type MeasuredSize } from "./container_size"; import { type StyleProps } from "./style_props"; export type AutoSizerChildProps = MeasuredSize; export interface AutoSizerProps extends StyleProps { /** Freeze the height at its first measurement and follow the width only. */ autoSizeWidthOnly?: boolean; /** Freeze the width at its first measurement and follow the height only. */ autoSizeHeightOnly?: boolean; onResize?: (size: AutoSizerChildProps) => void; children: React.ReactNode | ((size: AutoSizerChildProps) => React.ReactNode); testID?: string; ref?: React.Ref; render?: useRender.RenderProp; } /** * For what CSS cannot lay out: a canvas given pixel dimensions, a virtualized grid. Nothing renders * until the first measurement, since a canvas drawn at 0×0 cannot take it back. */ export declare function AutoSizer(props: AutoSizerProps): React.ReactElement>;