import type { FileLoadCallback } from '../../io'; import type { AnyStructure } from '../../structure'; export interface StructureEntry { label: string; structure: AnyStructure; color?: string; } type RecordValue = AnyStructure | { structure: AnyStructure; color?: string; }; export type StructureInput = AnyStructure | Record | StructureEntry[]; export declare const to_structure_entries: (structures: StructureInput | undefined) => StructureEntry[]; export declare const compute_structure_entries: (entries: readonly StructureEntry[], compute: (structure: AnyStructure) => Data) => { entries: (StructureEntry & { data: Data; })[]; error: string | undefined; }; export declare const create_structure_drop_handler: (opts: { allow: () => boolean; on_entry: (entry: StructureEntry) => void; on_error: (msg: string) => void; set_loading: (loading: boolean) => void; on_file_drop?: () => FileLoadCallback | undefined; }) => ((event: DragEvent) => Promise); export {};