import { IR8PaperBookPage } from './IR8PaperBookPage'; /** FireStore Database PaperBook JSON Format. Converted to/from IR8PaperBook. */ export interface IR8PaperBookFS { pages?: Array; description?: string; configs?: { [key: string]: any; }; } /** * PaperBook define how to generate Printed PaperMenu (pdf) and/or Web Menu * Kind of WordPress site generator * ngFor page in pages * ngFor item in page.item * * - Singleton Doc, Firestore.docId === 'paperbook' * * objClass: 500 * firestore.path: $etab/data/paperbook */ export interface IR8PaperBook { pages?: { [guid: string]: IR8PaperBookPage; }; description?: string; configs?: { [key: string]: any; }; } export declare function PaperBookInitialValue(): Partial; /** Default Validation PaperBook * Throw Error if fail */ export declare function CheckPaperBookIsValid(Obj: Partial | Partial): void; /** Default Validation PaperBook * return Error message if failure */ export declare function PaperBookIsValid(Obj: Partial | Partial): string; /** Serialize IR8PaperBook to Firestore JSON */ export declare function PaperBook2JSON(Obj: Partial): IR8PaperBookFS; /** Serialize Firestore JSON to IR8PaperBook. json can be undefined */ export declare function JSON2PaperBook(json: Partial | undefined, target: IR8PaperBook): void; /** New PaperBook from Firestore JSON */ export declare function JSONAsPaperBook(json?: Partial): IR8PaperBook;