import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class Feedback { /** * List all the feedback that been left by users. * * @see https://api.glitch.fun/api/documentation#/Feedback/listFeedback * * @returns promise */ static listFeedback(params?: Record): AxiosPromise>; /** * View a particular item of feedback. * * @see https://api.glitch.fun/api/documentation#/Feedback/getFeedbackById * * @returns promise */ static viewFeedback(feedback_id: string, params?: Record): AxiosPromise>; /** * List support tickets owned by the logged-in user. */ static listSupportTickets(params?: Record): AxiosPromise>; /** * Create a support ticket for the logged-in user. */ static createSupportTicket(data?: object, params?: Record): AxiosPromise>; /** * View a support ticket owned by the logged-in user. */ static viewSupportTicket(feedback_id: string, params?: Record): AxiosPromise>; /** * Reply to a support ticket owned by the logged-in user. */ static replySupportTicket(feedback_id: string, data?: object, params?: Record): AxiosPromise>; /** * Admin support inbox covering support tickets and feedback. */ static adminListFeedback(params?: Record): AxiosPromise>; static adminViewFeedback(feedback_id: string, params?: Record): AxiosPromise>; static adminUpdateFeedback(feedback_id: string, data?: object, params?: Record): AxiosPromise>; static adminReplyFeedback(feedback_id: string, data?: object, params?: Record): AxiosPromise>; static adminRewardFeedback(feedback_id: string, data?: object, params?: Record): AxiosPromise>; /** * Submit feedback. * * @see https://api.glitch.fun/api/documentation#/Feedback/a64fe3d6f90ed1af5bbd5311a795c134 * * @returns A promise */ static sendFeedback(data?: object, params?: Record): AxiosPromise>; /** * Submit feedback with the log file as a file. * * @see https://api.glitch.fun/api/documentation#/Feedback/a64fe3d6f90ed1af5bbd5311a795c134 * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static sendFeedbackWithFile(file: File, data?: object, params?: Record): AxiosPromise>; /** * Submit feedback with the log file as a blob. * * @see hhttps://api.glitch.fun/api/documentation#/Feedback/a64fe3d6f90ed1af5bbd5311a795c134 * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static sendFeedbackWithBlob(blob: Blob, data?: object, params?: Record): AxiosPromise>; } export default Feedback;