/** * Copyright (c) 2020 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal */ import { PluginContext } from '../../../mol-plugin/context.js'; import { StateBuilder, StateObjectRef, StateObjectSelector, StateTransform } from '../../../mol-state/index.js'; import { ParamDefinition as PD } from '../../../mol-util/param-definition.js'; import { StructureRepresentationBuiltInProps, StructureRepresentationProps } from '../../helpers/structure-representation-params.js'; import { PluginStateObject } from '../../objects.js'; import { PresetStructureRepresentations, StructureRepresentationPresetProvider } from './representation-preset.js'; export type StructureRepresentationPresetProviderRef = keyof PresetStructureRepresentations | StructureRepresentationPresetProvider | string; export declare class StructureRepresentationBuilder { plugin: PluginContext; private _providers; private providerMap; private get dataState(); readonly defaultProvider: StructureRepresentationPresetProvider<{ ignoreHydrogens: boolean | undefined; ignoreHydrogensVariant: "all" | "non-polar" | undefined; ignoreLight: boolean | undefined; quality: "auto" | "medium" | "high" | "low" | "custom" | "highest" | "higher" | "lower" | "lowest" | undefined; theme: PD.Normalize<{ globalName: /*elided*/ any; globalColorParams: /*elided*/ any; carbonColor: /*elided*/ any; symmetryColor: /*elided*/ any; symmetryColorParams: /*elided*/ any; focus: /*elided*/ any; }> | undefined; }, { components?: undefined; representations?: undefined; } | { components: { polymer: StateObjectSelector>, import("../../../mol-state/index.js").StateObject>, any>> | undefined; }; representations: { polymer: StateObjectSelector>, import("../../../mol-state/index.js").StateObject>, any>>; }; } | { components: { all: StateObjectSelector>, import("../../../mol-state/index.js").StateObject>, any>> | undefined; branched: undefined; }; representations: { all: StateObjectSelector>, import("../../../mol-state/index.js").StateObject>, any>>; }; }>; resolveProvider(ref: StructureRepresentationPresetProviderRef): StructureRepresentationPresetProvider; hasPreset(s: PluginStateObject.Molecule.Structure): boolean; get providers(): ReadonlyArray; getPresets(s?: PluginStateObject.Molecule.Structure): readonly StructureRepresentationPresetProvider[]; getPresetSelect(s?: PluginStateObject.Molecule.Structure): PD.Select; getPresetsWithOptions(s: PluginStateObject.Molecule.Structure): PD.Mapped>; registerPreset(provider: StructureRepresentationPresetProvider): void; unregisterPreset(provider: StructureRepresentationPresetProvider): void; applyPreset(parent: StateObjectRef, preset: K, params?: StructureRepresentationPresetProvider.Params): Promise> | undefined; applyPreset

(parent: StateObjectRef, provider: StructureRepresentationPresetProvider, params?: P): Promise | undefined; applyPreset(parent: StateObjectRef, providerId: string, params?: any): Promise | undefined; addRepresentation

(structure: StateObjectRef, props: P, options?: Partial): Promise>; addRepresentation

(structure: StateObjectRef, props: P, options?: Partial): Promise>; buildRepresentation

(builder: StateBuilder.Root, structure: StateObjectRef | undefined, props: P, options?: Partial): StateObjectSelector; buildRepresentation

(builder: StateBuilder.Root, structure: StateObjectRef | undefined, props: P, options?: Partial): StateObjectSelector; constructor(plugin: PluginContext); } export declare namespace StructureRepresentationBuilder { interface AddRepresentationOptions { initialState?: Partial; tag?: string; } }