import { CarteBtnZone, CarteObjOrigin } from './globalConst'; import { IR8BtnProps } from './IR8BtnProps'; /** FireStore Database CarteBtn JSON Format. Same as IR8CarteBtn. */ export declare type IR8CarteBtnFS = IR8CarteBtn; /** * La Carte Btn * Stored Inside La Carte * Can contain a PLU|Categ|... * */ export interface IR8CarteBtn { guid: string; zone: CarteBtnZone; ObjOrigin?: CarteObjOrigin; ObjGuid?: string; flatOrder?: number; name?: string; modifierTmpl?: string; page?: string; column?: number; line?: number; colspan?: number; rowspan?: number; btnProps?: IR8BtnProps; } export declare function CarteBtnInitialValue(): Partial; /** Default Validation CarteBtn * Throw Error if fail */ export declare function CheckCarteBtnIsValid(Obj: Partial | Partial): void; /** Default Validation CarteBtn * return Error message if failure */ export declare function CarteBtnIsValid(Obj: Partial | Partial): string; /** Serialize IR8CarteBtn to Firestore JSON */ export declare function CarteBtn2JSON(Obj: Partial): IR8CarteBtnFS; /** Serialize Firestore JSON to IR8CarteBtn. json can be undefined */ export declare function JSON2CarteBtn(json: Partial | undefined, target: IR8CarteBtn): void; /** New CarteBtn from Firestore JSON */ export declare function JSONAsCarteBtn(json?: Partial): IR8CarteBtn;