import { IR8Station } from './IR8Station'; import { IR8Config } from './IR8Config'; /** FireStore Database Stations JSON Format. Converted to/from IR8Stations. */ export interface IR8StationsFS { stations?: Array; description?: string; config?: IR8Config; } /** * Contain Stations * - Singleton Doc, Firestore.docId === 'stations' * * objClass: 110 * firestore.path: $etab/data/stations */ export interface IR8Stations { stations?: { [station: number]: IR8Station; }; description?: string; config?: IR8Config; } export declare function StationsInitialValue(): Partial; /** Default Validation Stations * Throw Error if fail */ export declare function CheckStationsIsValid(Obj: Partial | Partial): void; /** Default Validation Stations * return Error message if failure */ export declare function StationsIsValid(Obj: Partial | Partial): string; /** Serialize IR8Stations to Firestore JSON */ export declare function Stations2JSON(Obj: Partial): IR8StationsFS; /** Serialize Firestore JSON to IR8Stations. json can be undefined */ export declare function JSON2Stations(json: Partial | undefined, target: IR8Stations): void; /** New Stations from Firestore JSON */ export declare function JSONAsStations(json?: Partial): IR8Stations;