16 lines
571 B
TypeScript
16 lines
571 B
TypeScript
interface TourState {
|
|
currentTour: any;
|
|
legs: any[];
|
|
publicTours: any[];
|
|
userRole: string | null;
|
|
setTour: (tour: any) => void;
|
|
updateLegs: (legs: any[]) => void;
|
|
createTour: (tourData: any) => Promise<any>;
|
|
addLocation: (tourId: string, locationData: any) => Promise<void>;
|
|
optimizeRouting: (legId: string) => Promise<void>;
|
|
fetchTour: (id: string) => Promise<void>;
|
|
fetchPublicTours: () => Promise<void>;
|
|
}
|
|
export declare const useTourStore: import("zustand").UseBoundStore<import("zustand").StoreApi<TourState>>;
|
|
export {};
|