import { Methods } from "./methods.js"; import { Cover } from "./types/gumroad.js"; //#region src/covers.d.ts /** A class having API methods related to Covers */ declare class CoversMethods extends Methods { /** * Add a cover to a product from a publicly accessible URL. * The server fetches the URL and stores a copy, so the URL must be reachable over HTTP(S) * and cannot be a private or pre-signed upload URL. * * Accepts image (JPEG, PNG, GIF) and video URLs, as well as YouTube and Vimeo URLs. * * @param product_id The id of the product * @param url A publicly accessible image/video URL, or a YouTube/Vimeo URL * * @returns On success, An object containing `covers` and `main_cover_id` * * @see https://app.gumroad.com/api#post-/products/:product_id/covers * * **Only available with the `edit_products` scope.** */ add(product_id: string, url: string, { signal }?: { signal?: AbortSignal; }): Promise<{ covers: Cover[]; main_cover_id: string | null; }>; /** * Delete a cover from a product. * * @param product_id The id of the product * @param cover_id The id of the cover * * @returns On success, An object containing `covers` and `main_cover_id` * * @see https://app.gumroad.com/api#delete-/products/:product_id/covers/:id * * **Only available with the `edit_products` scope.** */ delete(product_id: string, cover_id: string, { signal }?: { signal?: AbortSignal; }): Promise<{ covers: Cover[]; main_cover_id: string | null; }>; } //#endregion export { CoversMethods }; //# sourceMappingURL=covers.d.ts.map