import type { Relationship } from './model/relationship'; import type { Sheet } from './model/sheet'; import type { Summary } from './model/summary'; import type { Topic } from './model/topic'; import type { Workbook } from './model/workbook'; import type { NamedResourceData } from '../storage'; type JSONValue = string | number | boolean | JSONObject | Array; type JSONObject = { [x: string]: JSONValue; }; export declare function asJSONObject(whatever: unknown): JSONObject; export declare function asJSONArray(whatever: unknown): Array; export declare function serializeWorkbook(workbook: Workbook, imageResourceSetter: (imageData: NamedResourceData) => Promise): Promise>; export declare function serializeSheet(sheet: Sheet, imageResourceSetter: (imageData: NamedResourceData) => Promise): Promise>; export declare function serializeTopic(topic: Topic | Readonly, imageResourceSetter: (imageData: NamedResourceData) => Promise): Promise>; export declare function serializeRelationship(relationship: Relationship): Readonly; export declare function serializeSummaryInfo(topic: Readonly, summary: Summary): Readonly | null; export declare function archive(workbook: Workbook): Promise; export {};