/** * Copyright (c) 2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { Structure, StructureElement } from '../../mol-model/structure.js'; import { MolScriptBuilder } from '../../mol-script/language/builder.js'; import { Expression } from '../../mol-script/language/expression.js'; import { CameraFocusLociOptions } from '../../mol-plugin-state/manager/camera.js'; import { PluginContext } from '../../mol-plugin/context.js'; export interface StructureInteractivityOptions { expression?: (queryBuilder: typeof MolScriptBuilder) => Expression; elements?: StructureElement.Schema; action: 'highlight' | 'select' | 'focus' | ('highlight' | 'select' | 'focus')[]; applyGranularity?: boolean; filterStructure?: (structure: Structure) => boolean; focusOptions?: Partial; } /** * Triggers structure element selection or highlighting based on the provided * MolScript expression or StructureElement schema. Focus action will only apply to the * first structure that matches the criteria. * * If neither `expression` nor `elements` are provided, all selections/highlights * will be cleared based on the specified `action`. */ export declare function applyStructureInteractivity(plugin: PluginContext, { expression, elements, action: action_, applyGranularity, filterStructure, focusOptions }: StructureInteractivityOptions): void;