import Response from "../util/Response"; import { AxiosPromise } from "axios"; declare class TipPackages { /** * Retrieve a list of tip packages. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/resourcePostList * * @returns promise */ static list(params?: Record): AxiosPromise>; /** * Create a new tip package. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/newPostResourceStorage * * @param data The data to be passed when creating a post. * * @returns Promise */ static create(data: object, params?: Record): AxiosPromise>; /** * Update a tip package. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/updatePostStorage * * @param package_id The id of the post to update. * @param data The data to update. * * @returns promise */ static update(package_id: string, data: object, params?: Record): AxiosPromise>; /** * Retrieve a single tip package resource. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/showPostStorage * * @param package_id The id fo the post to retrieve. * * @returns promise */ static view(package_id: string, params?: Record): AxiosPromise>; /** * Delete a tip package. * * @see https://api.glitch.fun/api/documentation#/Post%20Route/destoryPostStorage * * @param package_id The id of the post to delete. * @returns promise */ static delete(package_id: string, params?: Record): AxiosPromise>; } export default TipPackages;