import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class Templates { /** * List all the templates. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/resourceTemplateList * * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Create a new template. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/newTemplateResourceStorage * * @param data The data to be passed when creating a template. * * @returns Promise */ static create(data: object, params?: Record): AxiosPromise>; /** * Update a template. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/updateTemplateStorage * * @param template_id The id of the template to update. * @param data The data to update. * * @returns promise */ static update(template_id: string, data: object, params?: Record): AxiosPromise>; /** * Retrieve the information for a single template. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/showTemplateStorage * * @param template_id The id fo the template to retrieve. * * @returns promise */ static view(template_id: string, params?: Record): AxiosPromise>; /** * Deletes a template. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/destoryTemplateStorage * * @param template_id The id of the template to delete. * @returns promise */ static delete(template_id: string, params?: Record): AxiosPromise>; /** * Updates the logo for the template using a File object. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/uploadLogoTemplateImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadLogoFile(template_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * Updates the logo for the template using a Blob. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/uploadLogoTemplateImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadLogoBlob(template_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; /** * Updates the main image for the template using a File object. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/uploadMainTemplateImage * * @param file The file object to upload. * @param data Any additional data to pass along to the upload. * * @returns promise */ static uploadMainImageFile(template_id: string, file: File, data?: object, params?: Record): AxiosPromise>; /** * Updates the main image for the template using a Blob. * * @see https://api.glitch.fun/api/documentation#/Template%20Route/uploadMainTemplateImage * * @param blob The blob to upload. * @param data Any additional data to pass along to the upload * * @returns promise */ static uploadMainImageBlob(template_id: string, blob: Blob, data?: object, params?: Record): AxiosPromise>; } export default Templates;