import { IR8Route } from './IR8Route'; import { IR8Printer } from './IR8Printer'; /** FireStore Database Printor JSON Format. Converted to/from IR8Printor. */ export interface IR8PrintorFS { routes?: Array; printers?: Array; description?: string; configs?: { [key: string]: any; }; } /** * Le Printor contain Routes,Printers, .... * - Singleton Doc, Firestore.docId === 'printor' * * objClass: 400 * firestore.path: $etab/data/printor */ export interface IR8Printor { routes?: { [route: number]: IR8Route; }; printers?: { [printer: number]: IR8Printer; }; description?: string; configs?: { [key: string]: any; }; } export declare function PrintorInitialValue(): Partial; /** Default Validation Printor * Throw Error if fail */ export declare function CheckPrintorIsValid(Obj: Partial | Partial): void; /** Default Validation Printor * return Error message if failure */ export declare function PrintorIsValid(Obj: Partial | Partial): string; /** Serialize IR8Printor to Firestore JSON */ export declare function Printor2JSON(Obj: Partial): IR8PrintorFS; /** Serialize Firestore JSON to IR8Printor. json can be undefined */ export declare function JSON2Printor(json: Partial | undefined, target: IR8Printor): void; /** New Printor from Firestore JSON */ export declare function JSONAsPrintor(json?: Partial): IR8Printor;