import { StaffLevel } from './globalConst'; import { IR8Config } from './IR8Config'; /** FireStore Database Staff JSON Format. Same as IR8Staff. */ export declare type IR8StaffFS = IR8Staff; /** * Staff aka Garçon,Waiter * */ export interface IR8Staff { guid: string; staff: number; name: string; NISS?: string; level: StaffLevel; description?: string; config?: IR8Config; } export declare function StaffInitialValue(): Partial; /** Default Validation Staff * Throw Error if fail */ export declare function CheckStaffIsValid(Obj: Partial | Partial): void; /** Default Validation Staff * return Error message if failure */ export declare function StaffIsValid(Obj: Partial | Partial): string; /** Serialize IR8Staff to Firestore JSON */ export declare function Staff2JSON(Obj: Partial): IR8StaffFS; /** Serialize Firestore JSON to IR8Staff. json can be undefined */ export declare function JSON2Staff(json: Partial | undefined, target: IR8Staff): void; /** New Staff from Firestore JSON */ export declare function JSONAsStaff(json?: Partial): IR8Staff;