/** * Copyright (c) 2019-2021 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose */ import { Loci } from '../mol-model/loci.js'; import { StructureElement, Structure } from '../mol-model/structure.js'; import { Script } from '../mol-script/script.js'; export { Transparency }; type Transparency = { readonly kind: T['kind']; readonly layers: ReadonlyArray>; }; declare function Transparency(kind: T['kind'], layers: ReadonlyArray>): Transparency; declare namespace Transparency { type Layer = { readonly loci: T; readonly value: number; }; const Empty: Transparency; function areEqual(tA: Transparency, tB: Transparency): boolean; function isEmpty(transparency: Transparency): boolean; function remap(transparency: Transparency, structure: Structure): Transparency; function merge(transparency: Transparency): Transparency; function filter(transparency: Transparency, filter: Structure): Transparency; type ScriptLayer = { script: Script; value: number; }; function ofScript(scriptLayers: ScriptLayer[], structure: Structure): Transparency; type BundleLayer = { bundle: StructureElement.Bundle; value: number; }; function ofBundle(bundleLayers: BundleLayer[], structure: Structure): Transparency; function toBundle(transparency: Transparency): { kind: string; layers: BundleLayer[]; }; }