@itwin/presentation-frontend
Version:
Frontend of iModel.js Presentation library
20 lines • 883 B
TypeScript
/** @packageDocumentation
* @module UnifiedSelection
*/
import { IModelConnection } from "@itwin/core-frontend";
import { KeySet } from "@itwin/presentation-common";
import { SelectionChangeEvent } from "./SelectionChangeEvent";
/**
* Selection provider interface which provides main selection and sub-selection.
* @public
*/
export interface ISelectionProvider {
/** An event that's fired when selection changes */
selectionChange: SelectionChangeEvent;
/** Get the selection stored in the provider.
* @param imodel iModel connection which the selection is associated with.
* @param level Level of the selection (see [selection levels documentation section]($docs/presentation/unified-selection/index#selection-levels))
*/
getSelection(imodel: IModelConnection, level: number): Readonly<KeySet>;
}
//# sourceMappingURL=ISelectionProvider.d.ts.map