import "./PropertyGridUiItemsProvider.scss"; import { Selectables } from "@itwin/unified-selection"; import type { ReactNode } from "react"; import type { Widget, WidgetDef } from "@itwin/appui-react"; import type { SelectionStorage } from "@itwin/unified-selection"; import type { PropertyGridComponentProps } from "./PropertyGridComponent.js"; /** * Creates a property grid definition that should be returned from `UiItemsProvider.getWidgets()`. * @public */ export declare function createPropertyGrid(propertyGridProps: PropertyGridWidgetProps): Widget; /** * Default id for the property grid widget created by `createPropertyGrid`, if a custom on * is not supplied through `widgetId` prop. * * @public */ export declare const PropertyGridWidgetId = "vcr:PropertyGridComponent"; /** @public */ interface PropertyGridWidgetOwnProps { /** * A custom id to use for the created widget. Should be supplied when creating multiple property grid widgets to * make sure they don't conflict with each other in AppUI system. * * Defaults to `PropertyGridWidgetId`. */ widgetId?: string; /** Predicate indicating if the widget should be shown for the current selection set. */ shouldShow?: (selection: Selectables) => Promise; /** * Unified selection storage to use for listening and getting active selection. */ selectionStorage: SelectionStorage; } /** * Props for `createPropertyGrid`. * @public */ export type PropertyGridWidgetProps = PropertyGridComponentProps & PropertyGridWidgetOwnProps; /** @internal */ type PropertyWidgetInternalProps = PropertyGridWidgetOwnProps & { propertyGridComponent: ReactNode; widgetId: string; widgetDef?: WidgetDef; }; /** * Component that renders given `propertyGridComponent` an hides/shows widget based on unified selection. * @internal */ export declare function PropertyGridWidget({ widgetId, widgetDef: widgetDefOverride, shouldShow, selectionStorage, propertyGridComponent, }: PropertyWidgetInternalProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=PropertyGridUiItemsProvider.d.ts.map