import { AxiosResponse } from "axios"; import { ApiRequest } from "../client/ApiRequest"; import { IOptions, IRequestOptions, IStandardParameters, IStandardResponse } from "../types"; export interface IListingTranslation { /** * The numeric ID for the Listing. */ listing_id: number; /** * The IETF language tag (e.g. 'fr') for the language of this translation. */ language: string; /** * The title of the Listing of this Translation. */ title: string; /** * The description of the Listing of this Translation. */ description: string; /** * The tags of the Listing of this Translation. */ tags: string[]; } export interface IGetListingTranslationParameters { listing_id: number; language: string; } export interface ICreateListingTranslationParameters { listing_id: number; language: string; title?: string; description?: string; tags?: string[]; } export interface IUpdateListingTranslationParameters { listing_id: number; language: string; title?: string; description?: string; tags?: string[]; } export interface IDeleteListingTranslationParameters { listing_id: number; language: string; } export declare class ListingTranslation extends ApiRequest { constructor(options: IOptions); /** * Retrieves a ListingTranslation by listing_id and language */ getListingTranslation(params: IGetListingTranslationParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Creates a ListingTranslation by listing_id and language */ createListingTranslation(params: ICreateListingTranslationParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Updates a ListingTranslation by listing_id and language */ updateListingTranslation(params: IUpdateListingTranslationParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; /** * Deletes a ListingTranslation by listing_id and language */ deleteListingTranslation(params: IDeleteListingTranslationParameters & IStandardParameters, extra?: IRequestOptions): Promise>>; }