import { Coordinate, Item } from "@fjell/types"; /** * Utility class for serializing and deserializing items to/from JSON */ export declare class FileProcessor { /** * Serialize an item to JSON string */ serialize>(item: V): string; /** * Deserialize JSON string to an item * Returns null if deserialization fails or item is invalid */ deserialize>(content: string, _coordinate: Coordinate): V | null; /** * Validate that an object has the basic structure of an Item */ validateItemStructure(item: any): item is Item; /** * Serialize item to a Buffer (for uploading to GCS) */ serializeToBuffer>(item: V): Buffer; /** * Deserialize from a Buffer (from GCS download) */ deserializeFromBuffer>(buffer: Buffer, coordinate: Coordinate): V | null; /** * Check if content is valid JSON */ isValidJson(content: string): boolean; /** * Pretty print JSON (for debugging) */ prettyPrint(item: any): string; } /** * Singleton instance */ export declare const fileProcessor: FileProcessor;