import type { FdoRestaurant } from '@feedmepos/core/entity'; /** * @deprecated use enum from F_INVENTORY_LOCATION_TYPE */ export declare const InventoryLocationType: { restaurant: "restaurant"; warehouse: "warehouse"; }; export type InventoryLocation = FdtoInventoryLocationInfo; export declare function useLocationStore(): { _currentLocation: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; } | null; _locations: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null; _allLocations: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null; _locationWithInventory: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null; locationRestaurantFromCore(locationId: string): FdoRestaurant | null; readonly state: { _currentLocation: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; } | null; _locations: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null; _allLocations: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null; _locationWithInventory: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[] | null; }; readonly locationById: Record; readonly currentLocation: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }; /** prefixed with restaurant_ or warehouse_ */ readonly currentLocationDBName: string; readonly currentLocationId: any; readonly locations: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[]; readonly allLocations: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[]; readonly locationsWithInventory: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }[]; readonly locationByDbName: { [key: string]: { inventory?: { _id: string; updatedAt: string; } | null | undefined; preparationTime?: { unit: "day" | "year" | "month" | "week" | "hour" | "minute" | "second" | "millisecond"; value: number; } | null | undefined; name: string; type: "restaurant" | "warehouse"; acceptRequest: boolean; dbName: string; doc: { _id: string; businessId: string; profile: { code?: string | null | undefined; url?: string | null | undefined; description?: string | null | undefined; _id?: string | null | undefined; legalName?: string | null | undefined; sstRegNo?: string | null | undefined; discovery?: boolean | null | undefined; coverPhoto?: string | null | undefined; thumbnailPhoto?: string | null | undefined; photos?: string[] | null | undefined; operatingHours?: { 0: { hours: { end: string; start: string; }[]; enable: boolean; }; 2: { hours: { end: string; start: string; }[]; enable: boolean; }; 1: { hours: { end: string; start: string; }[]; enable: boolean; }; 3: { hours: { end: string; start: string; }[]; enable: boolean; }; 4: { hours: { end: string; start: string; }[]; enable: boolean; }; 5: { hours: { end: string; start: string; }[]; enable: boolean; }; 6: { hours: { end: string; start: string; }[]; enable: boolean; }; } | null | undefined; tags?: string[] | null | undefined; name: string; address: { coordinates?: number[] | null | undefined; line2?: string | null | undefined; state: string; country: string; line1: string; city: string; postcode: string; }; email: string; phoneNo: string; regNo: string; }; }; }; }; businessLevel: boolean; watchLocation(callback: (location?: InventoryLocation | null) => Promise, persistentKey?: string): void; readLocations(): Promise; readLocationsWithInventory(): Promise; setLocations(resp: InventoryLocation[]): void; selectLocation(location?: InventoryLocation, skipStorage?: boolean): void; init(): Promise; };