@iktos-oss/rdkit-provider
Version:
exports an initialized RDKit instance, with helper functions
17 lines (16 loc) • 578 B
TypeScript
import { JSMol } from '@rdkit/rdkit';
type MolType = 'mol' | 'qmol';
interface MolsToCache {
structure: string;
jsMol: JSMol | null;
molType: MolType;
}
export declare const clearCacheIfWillOverflow: ({ nbMols, nbQmols }: {
nbMols: number;
nbQmols: number;
}) => void;
export declare const storeJSMolsInCache: (molsToStore: MolsToCache[]) => void;
export declare const getJSMolsFromCache: (structures: string[], molType: MolType) => (JSMol | null)[];
export declare const cleanMolCache: () => void;
export declare const cleanAllCache: () => void;
export {};