import { IR8BtnProps } from './IR8BtnProps'; /** FireStore Database Category JSON Format. Same as IR8Category. */ export declare type IR8CategoryFS = IR8Category; /** * Articles Categorie * Stored Inside La Carte * Categorie are auto linked. ex 111 belong to 11, belong to 1 * One Article can belong to zero or Only One Categorie, but belong also to Categorie.Parent * */ export interface IR8Category { guid: string; category: string; name: string; description?: string; extref?: string; tags?: string[]; webOrderPlatforms?: string[]; btnProps?: IR8BtnProps; } export declare function CategoryInitialValue(): Partial; /** Default Validation Category * Throw Error if fail */ export declare function CheckCategoryIsValid(Obj: Partial | Partial): void; /** Default Validation Category * return Error message if failure */ export declare function CategoryIsValid(Obj: Partial | Partial): string; /** Serialize IR8Category to Firestore JSON */ export declare function Category2JSON(Obj: Partial): IR8CategoryFS; /** Serialize Firestore JSON to IR8Category. json can be undefined */ export declare function JSON2Category(json: Partial | undefined, target: IR8Category): void; /** New Category from Firestore JSON */ export declare function JSONAsCategory(json?: Partial): IR8Category;