molstar
Version:
A comprehensive macromolecular library.
21 lines (20 loc) • 2.63 kB
TypeScript
/**
* Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
*/
import { StateTransformer, StateTransform } from '../../mol-state/index.js';
import { PluginContext } from '../../mol-plugin/context.js';
import { Download, ReadFile, DownloadBlob, RawData } from '../transforms/data.js';
export declare class DataBuilder {
plugin: PluginContext;
private get dataState();
rawData(params: StateTransformer.Params<RawData>, options?: Partial<StateTransform.Options>): Promise<import("../../mol-state/index.js").StateObjectSelector<import("../objects.js").PluginStateObject.Data.String | import("../objects.js").PluginStateObject.Data.Binary, StateTransformer<import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, any>>>;
download(params: StateTransformer.Params<Download>, options?: Partial<StateTransform.Options>): Promise<import("../../mol-state/index.js").StateObjectSelector<import("../objects.js").PluginStateObject.Data.String | import("../objects.js").PluginStateObject.Data.Binary, StateTransformer<import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, any>>>;
downloadBlob(params: StateTransformer.Params<DownloadBlob>, options?: Partial<StateTransform.Options>): Promise<import("../../mol-state/index.js").StateObjectSelector<import("../objects.js").PluginStateObject.Data.Blob, StateTransformer<import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, any>>>;
readFile(params: StateTransformer.Params<ReadFile>, options?: Partial<StateTransform.Options>): Promise<{
data: import("../../mol-state/index.js").StateObjectSelector<import("../objects.js").PluginStateObject.Data.String | import("../objects.js").PluginStateObject.Data.Binary, StateTransformer<import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, import("../../mol-state/index.js").StateObject<any, import("../../mol-state/index.js").StateObject.Type<any>>, any>>;
fileInfo: import("../../mol-util/file-info.js").FileNameInfo;
}>;
constructor(plugin: PluginContext);
}