import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { CollectionMetadata, CollectionMetadataCreatedEnvelope, CollectionMetadataDeletedEnvelope, CollectionMetadataNonNullableFields, CollectionMetadataUpdatedEnvelope, ListCollectionMetadataOptions, ListCollectionMetadataResponse, ListCollectionMetadataResponseNonNullableFields, ReplaceCollectionMetadataOptions } from './cloud-autocms-v3-collection-metadata-autocms.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createCollectionMetadata(httpClient: HttpClient): CreateCollectionMetadataSignature; interface CreateCollectionMetadataSignature { /** * Creates a new collection metadata instance. * * In case of an error, this endpoint returns the following codes: * - `METADATA_EXISTS`: Metadata already exists for the specified collection. * @param - Collection metadata details. * @returns Created collection metadata instance. */ (collectionMetadata: CollectionMetadata): Promise; } export declare function getCollectionMetadata(httpClient: HttpClient): GetCollectionMetadataSignature; interface GetCollectionMetadataSignature { /** * Gets a collection metadata instance. * * In case of an error, this endpoint returns the following codes: * - `ITEM_NOT_FOUND`: No metadata exists for the specified collection. * @param - ID of the collection for which to retrieve metadata. * @returns Retrieved collection metadata instance. */ (dataCollectionId: string): Promise; } export declare function updateCollectionMetadata(httpClient: HttpClient): UpdateCollectionMetadataSignature; interface UpdateCollectionMetadataSignature { /** * Updates the metadata for the specified collection. * * In case of an error, this endpoint returns the following codes: * - `ITEM_NOT_FOUND`: No metadata exists for the specified collection. * @param - TODO CLARIFY WHAT THIS MEANS: * ID of metadata to update, ignored if **collection_metadata.data_collection_id** is non-empty // a technical workaround * exists because of docs generation issue with nested fields and ** path variables * TODO shouldn't this be required? // Yes * ID of the collection for which to update metadata. * @param - Collection metadata to update. Only the specified fields are affected. Fields not mentioned remain unchanged. * @returns Updated collection metadata instance. */ (dataCollectionId: string, collectionMetadata: CollectionMetadata): Promise; } export declare function replaceCollectionMetadata(httpClient: HttpClient): ReplaceCollectionMetadataSignature; interface ReplaceCollectionMetadataSignature { /** * Completely replaces all existing collection metadata with the provided metadata. */ (options?: ReplaceCollectionMetadataOptions | undefined): Promise; } export declare function deleteCollectionMetadata(httpClient: HttpClient): DeleteCollectionMetadataSignature; interface DeleteCollectionMetadataSignature { /** * Deletes a collection metadata instance. (1) * Deletes the specified collection's metadata. (2) * @param - ID of the collection for which to delete metadata. */ (dataCollectionId: string): Promise; } export declare function listCollectionMetadata(httpClient: HttpClient): ListCollectionMetadataSignature; interface ListCollectionMetadataSignature { /** * Lists all collection metadata. */ (options?: ListCollectionMetadataOptions | undefined): Promise; } export declare const onCollectionMetadataCreated: EventDefinition; export declare const onCollectionMetadataDeleted: EventDefinition; export declare const onCollectionMetadataUpdated: EventDefinition; export { ActionEvent, Asset, BaseEventMetadata, CollectionMetadata, CollectionMetadataCreatedEnvelope, CollectionMetadataDeletedEnvelope, CollectionMetadataNonNullableFields, CollectionMetadataUpdatedEnvelope, CreateCollectionMetadataRequest, CreateCollectionMetadataResponse, CreateCollectionMetadataResponseNonNullableFields, CursorPaging, CursorPagingMetadata, Cursors, DeleteCollectionMetadataRequest, DeleteCollectionMetadataResponse, DeleteContext, DeleteStatus, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, GetCollectionMetadataRequest, GetCollectionMetadataResponse, GetCollectionMetadataResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, ListCollectionMetadataOptions, ListCollectionMetadataRequest, ListCollectionMetadataResponse, ListCollectionMetadataResponseNonNullableFields, MessageEnvelope, MetaSiteSpecialEvent, MetaSiteSpecialEventPayloadOneOf, Namespace, NamespaceChanged, PermissionsTemplateType, ReplaceCollectionMetadataOptions, ReplaceCollectionMetadataRequest, ReplaceCollectionMetadataResponse, RestoreInfo, ServiceProvisioned, ServiceRemoved, SiteCreated, SiteCreatedContext, SiteDeleted, SiteHardDeleted, SiteMarkedAsTemplate, SiteMarkedAsWixSite, SitePublished, SiteRenamed, SiteTransferred, SiteUndeleted, SiteUnpublished, State, StudioAssigned, StudioUnassigned, UpdateCollectionMetadataRequest, UpdateCollectionMetadataResponse, UpdateCollectionMetadataResponseNonNullableFields, WebhookIdentityType, } from './cloud-autocms-v3-collection-metadata-autocms.universal.js';