import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, CreateGalleryOptions, DeleteGalleryItemIdentifiers, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreatedEnvelope, GalleryItemDeletedEnvelope, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryUpdatedEnvelope, GetGalleryItemIdentifiers, GetGalleryOptions, Item, ItemNonNullableFields, ListGalleriesOptions, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers } from './pro-gallery-v2-gallery-pro-gallery.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function listGalleries(httpClient: HttpClient): ListGalleriesSignature; interface ListGalleriesSignature { /** * Retrieves a list of galleries. * * This function retrieves a list of up to 10 galleries at a given time. To list the next 10 galleries in your site's backend, use the `offset` parameter. * @param - Options to use when getting the list of galleries. */ (options?: ListGalleriesOptions | undefined): Promise; } export declare function getGallery(httpClient: HttpClient): GetGallerySignature; interface GetGallerySignature { /** * Retrieves a gallery by ID. * @param - Gallery ID. * @param - Options to use when getting the gallery. * @returns Returned gallery. */ (galleryId: string, options?: GetGalleryOptions | undefined): Promise; } export declare function listGalleryItems(httpClient: HttpClient): ListGalleryItemsSignature; interface ListGalleryItemsSignature { /** * Retrieves a list of media items in a specified gallery. * * This function retrieves a list of up to 100 gallery items. The gallery items are listed by `sortOrder` in descending order. * @param - Gallery ID. * @param - Options to use when getting the list of gallery items. */ (galleryId: string, options?: ListGalleryItemsOptions | undefined): Promise; } export declare function getGalleryItem(httpClient: HttpClient): GetGalleryItemSignature; interface GetGalleryItemSignature { /** * Retrieves a gallery item by ID. * @param - Gallery ID and Item ID. * @returns Returned media item. */ (identifiers: GetGalleryItemIdentifiers): Promise; } export declare function createGallery(httpClient: HttpClient): CreateGallerySignature; interface CreateGallerySignature { /** * Creates a new gallery. * * You can create your own gallery by providing the gallery information, or clone an existing gallery using the ID of that existing gallery. When a gallery is cloned, the newly-created gallery includes the same properties as the existing gallery except for the gallery and item IDs, sort order, and created and updated dates. * * The newly-created gallery is only available on your backend, and doesn't appear on your live site. To display your backend gallery on your live site, you need to connect it to a gallery component on your live site. To do this, import the `createGallery()` function to your page code, and write code to convert the backend gallery object to the frontend gallery component object. Once converted, the newly created backend gallery is visible on your live site. For reference, check out the code example, "Create a gallery and display it on your live site". To learn more, see [Displaying a Pro Gallery on Your Site Using the Pro Gallery Backend API](https://support.wix.com/en/article/velo-tutorial-displaying-a-pro-gallery-on-your-site-using-the-pro-gallery-backend-api). * *
* * __Important:__ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * *
* @param - Options to use when creating the gallery. * @returns Created gallery. */ (options?: CreateGalleryOptions | undefined): Promise; } export declare function updateGallery(httpClient: HttpClient): UpdateGallerySignature; interface UpdateGallerySignature { /** * Updates a gallery. * * Only the fields in the `gallery` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same. * *
* * __Important:__ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * *
* @param - ID of the gallery to update. * @param - The information for the gallery being updated. * @returns Updated gallery. */ (_id: string | null, gallery: UpdateGallery): Promise; } export declare function deleteGallery(httpClient: HttpClient): DeleteGallerySignature; interface DeleteGallerySignature { /** * Deletes a gallery. * * When a gallery is deleted, the deleted gallery is no longer returned when calling the [`listGalleries()`](/pro-gallery/list-galleries) function. * @param - ID of the gallery to delete. */ (galleryId: string): Promise; } export declare function deleteGalleryItems(httpClient: HttpClient): DeleteGalleryItemsSignature; interface DeleteGalleryItemsSignature { /** * Deletes multiple media items from a gallery. * @param - Gallery ID. * @deprecated */ (galleryId: string, options?: DeleteGalleryItemsOptions | undefined): Promise; } export declare function bulkDeleteGalleryItems(httpClient: HttpClient): BulkDeleteGalleryItemsSignature; interface BulkDeleteGalleryItemsSignature { /** * Deletes multiple media items from a gallery. * @param - Gallery ID. * @param - IDs of the media items to delete. */ (galleryId: string, itemIds: string[]): Promise; } export declare function createGalleryItem(httpClient: HttpClient): CreateGalleryItemSignature; interface CreateGalleryItemSignature { /** * Creates a media item in a specified gallery. * * The `createGalleryItem()` function returns a Promise that resolves to a newly-created gallery item after it has successfully been created. * *
* * __Important:__ * When creating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * *
* @param - Gallery ID. * @param - Media item to create. * @returns Created media item. */ (galleryId: string, item: Item): Promise; } export declare function updateGalleryItem(httpClient: HttpClient): UpdateGalleryItemSignature; interface UpdateGalleryItemSignature { /** * Updates a media item in a specified gallery. * * Only the fields in the `item` object parameter can be updated. Specify which fields to update. Unspecified fields remain the same. * *
* * __Important:__ * When updating `image` items in your gallery, the images must be uploaded to the [Wix Media Manager](https://support.wix.com/en/article/wix-media-uploading-media-to-the-media-manager) first as the `imageInfo` parameter currently only supports the Wix media URL. * *
* @param - The information for the gallery item being updated. * @param - Gallery ID and Item ID. * @returns Updated media item. */ (identifiers: UpdateGalleryItemIdentifiers, item: UpdateGalleryItem): Promise; } export declare function deleteGalleryItem(httpClient: HttpClient): DeleteGalleryItemSignature; interface DeleteGalleryItemSignature { /** * Deletes a media item from a gallery. * * When a gallery item is deleted, the deleted gallery item is no longer returned when calling the [`listGalleryItems()`](/pro-gallery/list-gallery-items) function. * @param - Gallery ID and Item ID. */ (identifiers: DeleteGalleryItemIdentifiers): Promise; } export declare const onGalleryCreated: EventDefinition; export declare const onGalleryUpdated: EventDefinition; export declare const onGalleryDeleted: EventDefinition; export declare const onGalleryItemCreated: EventDefinition; export declare const onGalleryItemUpdated: EventDefinition; export declare const onGalleryItemDeleted: EventDefinition; export { ActionEvent, AddressLink, AnchorLink, App, BaseEventMetadata, BulkDeleteGalleryItemsRequest, BulkDeleteGalleryItemsResponse, BulkDeleteGalleryItemsResponseNonNullableFields, CleanDeletedGalleriesEvent, CreateGalleryItemRequest, CreateGalleryItemResponse, CreateGalleryItemResponseNonNullableFields, CreateGalleryItemsRequest, CreateGalleryItemsResponse, CreateGalleryOptions, CreateGalleryRequest, CreateGalleryResponse, CreateGalleryResponseNonNullableFields, DeleteByFilterOperation, DeleteByIdsOperation, DeleteGalleryItemIdentifiers, DeleteGalleryItemRequest, DeleteGalleryItemResponse, DeleteGalleryItemResponseNonNullableFields, DeleteGalleryItemsOptions, DeleteGalleryItemsRequest, DeleteGalleryItemsResponse, DeleteGalleryItemsResponseNonNullableFields, DeleteGalleryRequest, DeleteGalleryResponse, DeleteGalleryResponseNonNullableFields, DocumentImage, DocumentLink, DocumentPayload, DocumentUpdateOperation, DomainEvent, DomainEventBodyOneOf, DynamicPageLink, EmailLink, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Enum, EventMetadata, EventsPage, ExternalLink, File, Gallery, GalleryCreatedEnvelope, GalleryDeletedEnvelope, GalleryItemCreated, GalleryItemCreatedEnvelope, GalleryItemDeleted, GalleryItemDeletedEnvelope, GalleryItemUpdated, GalleryItemUpdatedEnvelope, GalleryNonNullableFields, GalleryPublished, GalleryUpdatedEnvelope, GetActiveGalleryRevisionRequest, GetActiveGalleryRevisionResponse, GetGalleryItemIdentifiers, GetGalleryItemRequest, GetGalleryItemResponse, GetGalleryItemResponseNonNullableFields, GetGalleryOptions, GetGalleryRequest, GetGalleryRequestVersionOneOf, GetGalleryResponse, GetGalleryResponseNonNullableFields, GetGalleryRevisionRequest, GetGalleryRevisionResponse, HtmlSitePublished, HtmlSiteRCPublished, IdentificationData, IdentificationDataIdOneOf, Image, ImageType, IndexDocument, InvalidateCache, InvalidateCacheGetByOneOf, Item, ItemId, ItemMetadataOneOf, ItemNonNullableFields, ItemsInGallery, Link, LinkRel, LinkType, ListGalleriesItemsRequest, ListGalleriesItemsResponse, ListGalleriesOptions, ListGalleriesRequest, ListGalleriesResponse, ListGalleriesResponseNonNullableFields, ListGalleryItemsOptions, ListGalleryItemsRequest, ListGalleryItemsResponse, ListGalleryItemsResponseNonNullableFields, MessageEnvelope, Page, PageLink, PhoneLink, Point, ProgallerypublisherPublishGalleryRequest, ProgallerypublisherPublishGalleryResponse, PublishGalleryItemRequest, PublishGalleryItemResponse, PublishGalleryItemsRequest, PublishGalleryItemsResponse, PublishGalleryRequest, PublishGalleryResponse, RCLabel, RestoreInfo, SearchIndexingNotification, SearchIndexingNotificationState, SecondaryMedia, SecondaryMediaMetadataOneOf, State, Tags, Text, TpaPageLink, Type, URI, UnsharpMasking, UpdateByFilterOperation, UpdateDocumentsEvent, UpdateDocumentsEventOperationOneOf, UpdateExistingOperation, UpdateGallery, UpdateGalleryItem, UpdateGalleryItemIdentifiers, UpdateGalleryItemRequest, UpdateGalleryItemResponse, UpdateGalleryItemResponseNonNullableFields, UpdateGalleryRequest, UpdateGalleryResponse, UpdateGalleryResponseNonNullableFields, Video, VideoResolution, VideoType, WebhookIdentityType, WhatsAppLink, WixLink, WixLinkLinkOneOf, } from './pro-gallery-v2-gallery-pro-gallery.universal.js';