import type { HttpClient } from "../http-client.js"; /** * Uploads a media file to the Shopware instance. * * @param {HttpClient} httpClient - The HTTP client instance. * @param {Object} options - The options for uploading the media file. * @param {boolean} [options.private] - Whether the media file should be private. * @param {string} [options.mediaFolderId] - The ID of the media folder to upload the file to. * @param {string} options.fileName - The name of the file to upload. * @param {Blob|Promise} options.file - The file to upload. * @returns {Promise} - The ID of the uploaded media file. */ export declare function uploadMediaFile(httpClient: HttpClient, { private: isPrivate, mediaFolderId, fileName, file, }: { private?: boolean; mediaFolderId?: string | null; fileName: string; file: Blob | Promise; }): Promise; /** * Uploads a media file by URL to the Shopware instance. * * @param {HttpClient} httpClient - The HTTP client instance. * @param {Object} options - The options for uploading the media file. * @param {boolean} [options.private] - Whether the media file should be private. * @param {string} [options.mediaFolderId] - The ID of the media folder to upload the file to. * @param {string} options.fileName - The name of the file to upload. * @param {string} options.url - The URL of the media file to upload. * @returns {Promise} - The ID of the uploaded media file. */ export declare function uploadMediaByUrl(httpClient: HttpClient, { private: isPrivate, mediaFolderId, fileName, url, }: { private?: boolean; mediaFolderId?: string | null; fileName: string; url: string; }): Promise; /** * Retrieves the default media folder ID for a given entity. * * @param {HttpClient} httpClient - The HTTP client instance. * @param {string} entity - The entity name to get the default folder ID for. * @returns {Promise} - The ID of the default media folder or null if not found. */ export declare function getMediaDefaultFolderByEntity(httpClient: HttpClient, entity: string): Promise; /** * Retrieves the media folder ID by its name. * * @param {HttpClient} httpClient - The HTTP client instance. * @param {string} name - The name of the media folder. * @returns {Promise} - The ID of the media folder or null if not found. */ export declare function getMediaFolderByName(httpClient: HttpClient, name: string): Promise; interface CreateMediaFolderOptions { parentId?: string; } /** * Creates a new media folder. * * @param {HttpClient} httpClient - The HTTP client instance. * @param {string} name - The name of the media folder. * @param {Object} options - Additional options for creating the media folder. * @param {string} [options.parentId] - The ID of the parent folder, if any. * @returns {Promise} - The ID of the newly created media folder. */ export declare function createMediaFolder(httpClient: HttpClient, name: string, options: CreateMediaFolderOptions): Promise; export {}; //# sourceMappingURL=media.d.ts.map