import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class DownloadService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Download project (Using post) * Identical to the get request, but useful if the request url is too long * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ downloadPost(projectId: string, requestBody: { /** * The ID of the release to download, or 'latest' to download the latest release. Defaults to latest if not set */ release_id?: string; /** * The type of file to download */ type: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json'; /** * The variable format of the OTAA environment */ variable_format?: 'object' | 'icu' | 'i18n'; /** * The locales to include in the download. Can be a single locale string or an array of locale strings */ selected_locales: Array; /** * If the download should be as a file or as text. */ download_type?: 'file' | 'text'; /** * Filter by translation status */ filter_translation_status?: Array<'not_translated' | 'translated' | 'reviewed'>; /** * Filter by namespace ID. If empty, all namespaces are included */ filter_namespace_id?: string; /** * Filter by key IDs to include */ filter_key_ids_include?: Array; /** * Filter by key IDs to exclude */ filter_key_ids_exclude?: Array; /** * Filter by tag IDs to include */ filter_tags_include?: Array; /** * Filter by tag IDs to exclude */ filter_tags_exclude?: Array; /** * Filter by key code prefix */ filter_key_code_prefix?: string; /** * If true, the server will generate a single file with all translations merged together. Only applicable if a single locale is selected */ no_zip?: boolean; }): CancelablePromise; /** * Download project (Using get) * Download project translations based on query parameters * @param projectId The unique identifier of the project. * @param type * @param selectedLocales * @param releaseId * @param variableFormat * @param downloadType * @param filterTranslationStatus * @param filterNamespaceId * @param filterKeyIdsInclude * @param filterKeyIdsExclude * @param filterTagsInclude * @param filterTagsExclude * @param filterKeyCodePrefix * @param noZip * @returns any Success * @throws ApiError */ downloadGet(projectId: string, type: 'string' | 'php_laravel' | 'xcstrings' | 'i18njson' | 'yaml' | 'xliff' | 'po' | 'properties' | 'php' | 'json', selectedLocales: Array, releaseId?: string, variableFormat?: 'object' | 'icu' | 'i18n', downloadType?: 'file' | 'text', filterTranslationStatus?: Array<'not_translated' | 'translated' | 'reviewed'>, filterNamespaceId?: string, filterKeyIdsInclude?: Array, filterKeyIdsExclude?: Array, filterTagsInclude?: Array, filterTagsExclude?: Array, filterKeyCodePrefix?: string, noZip?: boolean): CancelablePromise; /** * Download project through CDN (With namespace) * Download project translations through the CDN. Note that this is another url and not really part of the API, but included here for completeness. No authentication needed as this is an open CDN. * @param projectId The unique identifier of the project. * @param otaId The unique name of the OTA environment. Like "prod", "default", "staging" etc. * @param namespace If namespaces are used, this will be the locale eg "en" * @param locale The locale, eg "en". * @returns any Success * @throws ApiError */ projectDownloadCdnByNamespace(projectId: string, otaId: string, namespace: string, locale: string): CancelablePromise; /** * Download project through CDN * Download project translations through the CDN. Note that this is another url and not really part of the API, but included here for completeness. No authentication needed as this is an open CDN. * @param projectId The unique identifier of the project. * @param otaId The unique name of the OTA environment. Like "prod", "default", "staging" etc. * @param locale The locale, eg "en". * @returns any Success * @throws ApiError */ projectDownloadCdn(projectId: string, otaId: string, locale: string): CancelablePromise; } //# sourceMappingURL=DownloadService.d.ts.map