import "./MultiElementPropertyGrid.scss"; import type { ReactNode } from "react"; import type { InstanceKey } from "@itwin/presentation-common"; import type { OmitOverUnion } from "@itwin/presentation-shared"; import type { PropertyGridProps } from "./PropertyGrid.js"; /** * Props for `MultiElementPropertyGrid` component. * @public */ export type MultiElementPropertyGridProps = OmitOverUnion & { /** Renders controls for ancestors navigation. If set to `undefined`, ancestors navigation is disabled. */ ancestorsNavigationControls?: (props: AncestorsNavigationControlsProps) => ReactNode; /** * An optional callback to get parent instance key of the given instance. Defaults * to using `computeSelection` from `@itwin/unified-selection`. When supplied, it should be * memoized to avoid unnecessary re-renders. */ getParentInstanceKey?: (key: InstanceKey) => Promise; }; /** * Component that renders property grid for instances in `UnifiedSelection`. * - If multiple instances are selected, a list containing the selected instances can be opened that allows to check properties of a specific instance. * - If a single instance is selected, navigation through its ancestors can be enabled. * @public */ export declare function MultiElementPropertyGrid({ ancestorsNavigationControls, getParentInstanceKey, ...props }: MultiElementPropertyGridProps): import("react/jsx-runtime").JSX.Element; /** * Props for `AncestorsNavigationControls` component. * @public */ export interface AncestorsNavigationControlsProps { /** Navigates up to parent instance. */ navigateUp: () => void; /** Navigates down to child instance from which parent instance was reached. */ navigateDown: () => void; /** Specified whether it is possible to navigate down. */ canNavigateDown: boolean; /** Specified whether it is possible to navigate up. */ canNavigateUp: boolean; } /** * Component that renders controls for navigating through ancestors. * @public */ export declare function AncestorsNavigationControls({ navigateUp, navigateDown, canNavigateDown, canNavigateUp }: AncestorsNavigationControlsProps): import("react/jsx-runtime").JSX.Element | null; //# sourceMappingURL=MultiElementPropertyGrid.d.ts.map