import { Course, CourseRaw } from '../store/useCourseStore'; /** * @description Helper function to make a GET request to retrieve courses * @returns Promise - The list of courses */ export declare function getCourses(): Promise; /** * @description Helper function to make a GET request to retrieve a course by ID * @param courseId - The ID of the course to retrieve * @returns Promise - The course object */ export declare function getCourseById(courseId: string): Promise; /** * @description Helper function to make a GET request to retrieve a course by URL * @param url - The URL of the course to retrieve * @returns Promise - The course object */ export declare function getCourseByUrl(url: string): Promise; /** * @description Helper function to make a POST request to add a new course * **Should only be used by teachers or admins!** * @param courseData - The course data to add * @returns Added course object */ export declare function addCourse(courseData: CourseRaw): Promise; /** * @description Helper function to make a PUT request to update a course * @param courseData - The course data to update * @returns Updated course object */ export declare const updateCourse: (course: Course) => Promise; /** * @description Helper function to make a DELETE request to delete a course * @param courseId - The ID of the course to delete * @returns Deleted course object */ export declare function deleteCourse(courseId: string): Promise;