@vendure/core
Version:
A modern, headless ecommerce framework
24 lines (23 loc) • 828 B
TypeScript
import { Readable } from 'stream';
import { Injector } from '../../common/injector';
import { AssetImportStrategy } from './asset-import-strategy';
/**
* @description
* The DefaultAssetImportStrategy is able to import paths from the local filesystem (taking into account the
* `importExportOptions.importAssetsDir` setting) as well as remote http/https urls.
*
* @since 1.7.0
* @docsCategory import-export
*/
export declare class DefaultAssetImportStrategy implements AssetImportStrategy {
private options?;
private configService;
constructor(options?: {
retryDelayMs: number;
retryCount: number;
} | undefined);
init(injector: Injector): void;
getStreamFromPath(assetPath: string): Readable | Promise<Readable>;
private getStreamFromUrl;
private getStreamFromLocalFile;
}