import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types'; import { CreateFolderOptions, CreateFolderResponse, Folder, ListFoldersOptions, ListFoldersResponse, SearchFoldersOptions, SearchFoldersResponse, UpdateFolder, UpdateFolderValidationErrors, GenerateFolderDownloadUrlResponse, BulkDeleteFoldersOptions, ListDeletedFoldersOptions, ListDeletedFoldersResponse, FoldersQueryBuilder, FolderQuery, typedQueryFolders } from './index.typings.js'; export { AccountInfo, ActionEvent, AddressLocation, BulkDeleteFoldersRequest, BulkDeleteFoldersResponse, BulkRestoreFoldersFromTrashBinRequest, BulkRestoreFoldersFromTrashBinResponse, CommonQueryWithEntityContext, CommonSortOrder, CommonSortOrderWithLiterals, CommonSorting, CreateFolderRequest, CursorPaging, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, FolderQuerySpec, FoldersQueryResult, GenerateFolderDownloadUrlRequest, GetFolderRequest, GetFolderResponse, IdentificationData, IdentificationDataIdOneOf, ListDeletedFoldersRequest, ListFoldersRequest, MessageEnvelope, Namespace, NamespaceWithLiterals, PagingMetadataV2, QueryFoldersRequest, QueryFoldersResponse, RestoreInfo, RootFolder, RootFolderWithLiterals, SearchFoldersRequest, SortOrder, SortOrderWithLiterals, Sorting, State, StateWithLiterals, UnsupportedRequestValueError, UpdateFolderRequest, UpdateFolderResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, utils } from './index.typings.js'; declare function createFolder$1(httpClient: HttpClient): CreateFolderSignature; interface CreateFolderSignature { /** * Creates a new folder in the Media Manager.
* * Use the `parentFolderId` parameter to specify in which existing folder you want the new folder to be created. * If no folder is specified, the new folder is created in the `media-root` folder. * @param - Folder name that appears in the Media Manager. * @param - Options for specifying where to create a folder. */ (displayName: string, options?: CreateFolderOptions): Promise>; } declare function getFolder$1(httpClient: HttpClient): GetFolderSignature; interface GetFolderSignature { /** * Gets information from a specific folder in the Media Manager. * @param - Folder ID. * @returns Information about the folder. */ (folderId: string): Promise>; } declare function listFolders$1(httpClient: HttpClient): ListFoldersSignature; interface ListFoldersSignature { /** * Retrieves a list of folders in the Media Manager. To retrieve a list of folders within a specific folder in the Media Manager, specify the specific folder's ID in the `parentFolderId` parameter. If no folder is specified, the method retrieves a list of folders within the root folder of the Media Manager. * @param - Options to use when listing folders from the Media Manager. */ (options?: ListFoldersOptions): Promise>; } declare function searchFolders$1(httpClient: HttpClient): SearchFoldersSignature; interface SearchFoldersSignature { /** * Retrieves a list of up to 200 folders with the specified filtering, sorting, and cursor paging. * * If no parameters are specified, the method returns all folders in the `MEDIA_ROOT` folder. * * ## Defaults * * Search Folders has the following default setting, which you can override: * + Sorted by `updatedDate` in descending order. * * ## Filters * * When using filters for dates, you must use * [UTC time](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). * * ## See also * * To learn about working with *Search* methods, see * [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) and * [Sorting and Paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging). * @param - Options specifying which folders to search. */ (options?: SearchFoldersOptions): Promise>; } declare function updateFolder$1(httpClient: HttpClient): UpdateFolderSignature; interface UpdateFolderSignature { /** * Updates a folder.
* * You can use the `parentFolderId` parameter to move a folder from its current parent folder to a different parent folder. * @param - Folder ID. Generated when a folder is created in the Media Manager. * @param - Folder to update. * @returns Information about the updated folder. */ (_id: string, folder: UpdateFolder): Promise & { __validationErrorsType?: UpdateFolderValidationErrors; }>; } declare function generateFolderDownloadUrl$1(httpClient: HttpClient): GenerateFolderDownloadUrlSignature; interface GenerateFolderDownloadUrlSignature { /** * Generates a URL for downloading a compressed file containing a specific folder in the Media Manager.
* * The compressed file can contain sub-folders, and up to 1000 files. * @param - Folder ID. */ (folderId: string): Promise>; } declare function bulkDeleteFolders$1(httpClient: HttpClient): BulkDeleteFoldersSignature; interface BulkDeleteFoldersSignature { /** * Temporarily deletes the specified folders from the Media Manager.
* * The deleted folders are moved to the Media Manager's `trash-root` folder (trash bin) unless permanently deleted. To permanently delete folders, specify the `permanent` parameter with the value `true`. Permanently deleting folders isn't reversible, so make sure that the files in these folders aren't being used in a site or in any other way as the files will no longer be accessible. * * Note the following: * * When a folder is deleted, the files in that folder are deleted. * * The specified folders can be from different parent folders. * * Moving multiple folders at once is an asynchronous action, and may take time for the changes to appear in the Media Manager. * * Attempting to delete folders that are already in the trash bin doesn't result in an error. * * If a site contains files from a deleted media folder, the files still appear on the site as the deleted folder is still in the Media Manager (in the trash bin). * * You can also use the [Bulk Restore Folders From Trash Bin](https://dev.wix.com/docs/rest/assets/media/media-manager/folders/bulk-restore-folders-from-trash-bin) method to restore folders from the Media Manager's trash bin. * @param - IDs of the folders to move to the Media Manager's trash bin. * @param - Options to use when deleting folders. */ (folderIds: string[], options?: BulkDeleteFoldersOptions): Promise; } declare function bulkRestoreFoldersFromTrashBin$1(httpClient: HttpClient): BulkRestoreFoldersFromTrashBinSignature; interface BulkRestoreFoldersFromTrashBinSignature { /** * Restores the specified folders from the Media Manager's trash bin, and moves them to their original locations in the Media Manager. * @param - IDs of the folders to restore from the Media Manager's trash bin. */ (folderIds: string[]): Promise; } declare function listDeletedFolders$1(httpClient: HttpClient): ListDeletedFoldersSignature; interface ListDeletedFoldersSignature { /** * Retrieves a list of folders in the Media Manager's trash bin. * @param - Options to use when listing deleted folders from the trash bin. */ (options?: ListDeletedFoldersOptions): Promise>; } declare function customQueryFolders(httpClient: HttpClient): { (): FoldersQueryBuilder; (query: FolderQuery): ReturnType; }; declare const createFolder: MaybeContext & typeof createFolder$1>; declare const getFolder: MaybeContext & typeof getFolder$1>; declare const listFolders: MaybeContext & typeof listFolders$1>; declare const searchFolders: MaybeContext & typeof searchFolders$1>; declare const updateFolder: MaybeContext & typeof updateFolder$1>; declare const generateFolderDownloadUrl: MaybeContext & typeof generateFolderDownloadUrl$1>; declare const bulkDeleteFolders: MaybeContext & typeof bulkDeleteFolders$1>; declare const bulkRestoreFoldersFromTrashBin: MaybeContext & typeof bulkRestoreFoldersFromTrashBin$1>; declare const listDeletedFolders: MaybeContext & typeof listDeletedFolders$1>; declare const queryFolders: MaybeContext & typeof customQueryFolders>; export { BulkDeleteFoldersOptions, CreateFolderOptions, CreateFolderResponse, Folder, FolderQuery, FoldersQueryBuilder, GenerateFolderDownloadUrlResponse, ListDeletedFoldersOptions, ListDeletedFoldersResponse, ListFoldersOptions, ListFoldersResponse, SearchFoldersOptions, SearchFoldersResponse, UpdateFolder, UpdateFolderValidationErrors, bulkDeleteFolders, bulkRestoreFoldersFromTrashBin, createFolder, generateFolderDownloadUrl, getFolder, listDeletedFolders, listFolders, queryFolders, searchFolders, updateFolder };