import type { IModelConnection } from "@itwin/core-frontend"; import type { InstanceKey } from "@itwin/presentation-common"; import type { SelectionStorage } from "@itwin/unified-selection"; /** * Props for `useInstanceSelection` hook. * @internal */ export interface InstanceSelectionProps { imodel: IModelConnection; selectionStorage: SelectionStorage; getParentInstanceKey?: (key: InstanceKey) => Promise; } /** * Custom hook that tracks instances selected in `UnifiedSelection`. Additionally it implements these features: * - If single instance is selected `ancestorsNavigationProps` returned from this hook can be used to navigate through ancestors. * It allows to navigate to the top most parent and navigate back to the starting instance. Navigating up and downs updates `UnifiedSelection`. * - Focus single instance until `UnifiedSelection` is changed. * @internal */ export declare function useInstanceSelection(props: InstanceSelectionProps): { selectedKeys: InstanceKey[]; focusedInstanceKey: InstanceKey | undefined; focusInstance: (key: InstanceKey) => void; ancestorsNavigationProps: { navigateDown: () => void; navigateUp: () => Promise; canNavigateUp: boolean; canNavigateDown: boolean; }; }; //# sourceMappingURL=UseInstanceSelection.d.ts.map