UNPKG

@rcsb/rcsb-saguaro-3d

Version:
29 lines (28 loc) 1.39 kB
import { StructureRepresentationPresetProvider } from "molstar/lib/mol-plugin-state/builder/structure/representation-preset"; import { TargetAlignments } from "@rcsb/rcsb-api-tools/lib/RcsbGraphQL/Types/Borrego/GqlTypes"; import { StructureBuilder } from "molstar/lib/mol-plugin-state/builder/structure"; import { StructureRepresentationBuilder } from "molstar/lib/mol-plugin-state/builder/structure/representation"; import { RigidTransformType } from "../../../StructureUtils/StructureLoaderInterface"; type RepresentationParamsType = { pdb?: { entryId: string; entityId: string; } | { entryId: string; instanceId: string; }; transform?: RigidTransformType[]; targetAlignment?: TargetAlignments; }; type ComponentType = Awaited<ReturnType<InstanceType<typeof StructureBuilder>["tryCreateComponentFromExpression"]>>; type RepresentationType = ReturnType<InstanceType<typeof StructureRepresentationBuilder>["buildRepresentation"]>; type ComponentMapType = Record<string, ComponentType>; type RepresentationMapType = Record<string, RepresentationType>; export declare const AlignmentRepresentationPresetProvider: StructureRepresentationPresetProvider<RepresentationParamsType, { components?: undefined; representations?: undefined; } | { components: ComponentMapType; representations: RepresentationMapType; }>; export {};