import { AssetModels } from '@kontent-ai/management-sdk'; import { IRetryStrategyOptions } from '@kontent-ai/core-sdk'; import { Log } from './log-helper.js'; import { HttpService } from '@kontent-ai/core-sdk'; import { AssetsFormatConfig, IErrorData, IProcessInChunksItemInfo, ItemType, ItemsFormatConfig } from './core.models.js'; import { ITrackingEventData } from '@kontent-ai-consulting/tools-analytics'; import { IAssetFormatService, IItemFormatService } from '../file-processor/index.js'; export declare const defaultHttpService: HttpService; export declare function exitProcess(): never; export declare function formatBytes(bytes: number): string; export declare function sleepAsync(ms: number): Promise; export declare const defaultRetryStrategy: IRetryStrategyOptions; export declare function getExtension(url: string): string | undefined; export declare function extractErrorData(error: any): IErrorData; export declare function is404Error(error: any): boolean; export declare function getAssetZipFilename(asset: AssetModels.Asset): string; export declare function getAssetIdFromFilename(filename: string): string; export declare function handleError(error: any): void; export declare function getAssetUrlPath(url: string): string; export declare function extractFilenameFromUrl(assetUrl: string): string; export declare function processInChunksAsync(data: { type: ItemType; log: Log; items: TInputItem[]; chunkSize: number; processFunc: (item: TInputItem) => Promise; itemInfo?: (item: TInputItem) => IProcessInChunksItemInfo; }): Promise; export declare function executeWithTrackingAsync(data: { func: () => Promise; event: ITrackingEventData; }): Promise; export declare function confirmImportAsync(data: { force: boolean; environmentId: string; apiKey: string; }): Promise; export declare function getItemsFormatService(type: ItemsFormatConfig): IItemFormatService; export declare function getAssetsFormatService(type: AssetsFormatConfig): IAssetFormatService;