import type { DefaultSettings } from '../settings'; export declare const STRUCTURE_VIEW_STATE_VERSION: 1; export declare const STRUCTURE_VIEW_STATE_STORAGE_KEY = "matterviz:structure-view:v1"; type StructureSettings = DefaultSettings[`structure`]; export type StructurePaneSize = { width: number; height: number; }; export type StructureViewState = { version: typeof STRUCTURE_VIEW_STATE_VERSION; settings: { color_scheme: DefaultSettings[`color_scheme`]; background_color?: DefaultSettings[`background_color`]; background_opacity: DefaultSettings[`background_opacity`]; structure: Partial; }; viewer: { supercell_scaling: string; cell_type: `original` | `conventional` | `primitive`; multi_view: boolean; controls_pane_size?: StructurePaneSize; }; }; type StructureViewStateSource = { scene_props?: object; color_scheme?: unknown; background_color?: unknown; background_opacity?: unknown; show_image_atoms?: unknown; show_trajectory_lines?: unknown; atom_color_config?: object; supercell_scaling?: unknown; cell_type?: unknown; multi_view?: unknown; controls_pane_size?: unknown; }; type StructureViewStateParseResult = { state: StructureViewState; error?: never; } | { state?: never; error: string; }; export declare const create_structure_view_state: (source?: StructureViewStateSource) => StructureViewState; export declare const deserialize_structure_view_state: (json: string) => StructureViewStateParseResult; export declare const serialize_structure_view_state: (state: StructureViewState) => string; export declare const clear_structure_view_state: () => void; export declare const load_structure_view_state: () => StructureViewState | null; export declare const save_structure_view_state: (state: StructureViewState) => void; export declare const DEFAULT_STRUCTURE_VIEW_STATE: StructureViewState; export {};