/** * Copyright (c) 2019-2026 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose * @author David Sehnal */ import { StringLike } from '../../mol-io/common/string-like.js'; import { PluginContext } from '../../mol-plugin/context.js'; import { StateObject, StateObjectRef, StateTransformer } from '../../mol-state/index.js'; import { RuntimeContext } from '../../mol-task/index.js'; import { FileNameInfo } from '../../mol-util/file-info.js'; import { PluginStateObject } from '../objects.js'; export interface DataFormatProvider

{ label: string; description: string; category?: string; stringExtensions?: string[]; binaryExtensions?: string[]; /** * Controls the order in which `DataFormatRegistry.auto` tries providers that share the * same extension, independent of registration order. Higher values are tried first. * Defaults to 0. Use a positive value for providers with a restrictive `isApplicable` * that should take precedence over more generic fallback providers (e.g. a specialized * variant of a shared file extension). */ priority?: number; isApplicable?(info: FileNameInfo, data: StringLike | Uint8Array): boolean; parse(plugin: PluginContext, data: StateObjectRef, params?: P): Promise; /** * Parse the data into plain objects without creating state tree nodes. In contrast to `parse` * this can be called from within a state update, e.g. from a transformer. */ parseRaw?(plugin: PluginContext, ctx: RuntimeContext, data: StringLike | Uint8Array, params?: P): Promise; visuals?(plugin: PluginContext, data: R): Promise | undefined; defaultData?: D; } export declare function DataFormatProvider

(provider: P): P; export declare function rawDataObject(data: StringLike | Uint8Array): PluginStateObject.Data.String | PluginStateObject.Data.Binary; /** Applies a transformer directly, without adding nodes to the state tree. */ export declare function applyTransformerRaw(plugin: PluginContext, ctx: RuntimeContext, transformer: StateTransformer, a: A, params?: Partial

): Promise | B; type CifVariants = 'dscif' | 'segcif' | 'sfcif' | 'coreCif' | -1; export declare function guessCifVariant(info: FileNameInfo, data: Uint8Array | StringLike): CifVariants; export {};