import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BulkDeleteReportsByFilterResponse, BulkDeleteReportsByFilterResponseNonNullableFields, CountReportsByReasonTypesOptions, CountReportsByReasonTypesResponse, CountReportsByReasonTypesResponseNonNullableFields, Report, ReportCreatedEnvelope, ReportDeletedEnvelope, ReportEntityReportSummaryChangedEnvelope, ReportNonNullableFields, ReportUpdatedEnvelope, ReportsQueryBuilder, UpdateExtendedFieldsOptions, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields, UpdateReport, UpsertReportIdentifiers, UpsertReportOptions, UpsertReportResponse, UpsertReportResponseNonNullableFields } from './reports-v2-report-reports.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function createReport(httpClient: HttpClient): CreateReportSignature; interface CreateReportSignature { /** * Creates a report. * @param - Report details. * @returns Created report. */ (report: Report): Promise; } export declare function getReport(httpClient: HttpClient): GetReportSignature; interface GetReportSignature { /** * Retrieves a report. * * Site members and visitors can only access their own reports. * @param - ID of the report to retrieve. * @returns Retrieved report. */ (reportId: string): Promise; } export declare function updateReport(httpClient: HttpClient): UpdateReportSignature; interface UpdateReportSignature { /** * Updates a report. * * Each time the report is updated, `revision` increments by 1. The current `revision` must be passed when updating the report. This ensures you're working with the latest report and prevents unintended overwrites. * @param - Report ID. * @returns Updated report. */ (_id: string | null, report: UpdateReport): Promise; } export declare function deleteReport(httpClient: HttpClient): DeleteReportSignature; interface DeleteReportSignature { /** * Deletes a report and removes it from the report list in the dashboard. * * Site members and visitors can only delete their own reports. * @param - ID of the report to delete. */ (reportId: string): Promise; } export declare function upsertReport(httpClient: HttpClient): UpsertReportSignature; interface UpsertReportSignature { /** * Creates or updates a report. * If the report for the requested entity already exists, updates the report with the provided `reason` value. Otherwise, creates the report. */ (identifiers: UpsertReportIdentifiers, options?: UpsertReportOptions | undefined): Promise; } export declare function bulkDeleteReportsByFilter(httpClient: HttpClient): BulkDeleteReportsByFilterSignature; interface BulkDeleteReportsByFilterSignature { /** * Deletes multiple reports by filter, and removes them from the report list in the dashboard. * @param - Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language) for more details. */ (filter: Record | null): Promise; } export declare function countReportsByReasonTypes(httpClient: HttpClient): CountReportsByReasonTypesSignature; interface CountReportsByReasonTypesSignature { /** * Counts reports by reason types. * @param - Reported entity name. For example, `comment`. */ (entityName: string, options: CountReportsByReasonTypesOptions): Promise; } export declare function queryReports(httpClient: HttpClient): QueryReportsSignature; interface QueryReportsSignature { /** * Retrieves a list of reports, given the provided paging, filtering, and sorting. * Query Reports runs with these defaults, which you can override: * - `createdDate` is sorted in `ASC` order * - `paging.limit` is `100` * - `paging.offset` is `0` * * For field support for filters and sorting, see [Reports: Supported Filters and Sorting](). * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */ (): ReportsQueryBuilder; } export declare function updateExtendedFields(httpClient: HttpClient): UpdateExtendedFieldsSignature; interface UpdateExtendedFieldsSignature { /** * Updates extended fields of a report. * [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions) must first be configured in the app dashboard. * @param - ID of the report to update. * @param - Identifier for the app whose extended fields are being updated. */ (_id: string, namespace: string, options: UpdateExtendedFieldsOptions): Promise; } export declare const onReportCreated: EventDefinition; export declare const onReportDeleted: EventDefinition; export declare const onReportEntityReportSummaryChanged: EventDefinition; export declare const onReportUpdated: EventDefinition; export { ActionEvent, BaseEventMetadata, BulkDeleteReportsByFilterRequest, BulkDeleteReportsByFilterResponse, BulkDeleteReportsByFilterResponseNonNullableFields, CommonIdentificationData, CommonIdentificationDataIdOneOf, CountReportsByReasonTypesOptions, CountReportsByReasonTypesRequest, CountReportsByReasonTypesResponse, CountReportsByReasonTypesResponseNonNullableFields, CreateReportRequest, CreateReportResponse, CreateReportResponseNonNullableFields, CursorPaging, CursorPagingMetadata, CursorQuery, CursorQueryPagingMethodOneOf, Cursors, DeleteReportRequest, DeleteReportResponse, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityReportSummaryChanged, EntityUpdatedEvent, EventMetadata, ExtendedFields, GetReportRequest, GetReportResponse, GetReportResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityType, MessageEnvelope, QueryReportsRequest, QueryReportsResponse, QueryReportsResponseNonNullableFields, Reason, ReasonCount, ReasonTypeCount, Report, ReportCreatedEnvelope, ReportDeletedEnvelope, ReportEntityReportSummaryChangedEnvelope, ReportNonNullableFields, ReportUpdatedEnvelope, ReportsQueryBuilder, ReportsQueryResult, RestoreInfo, SortOrder, Sorting, Type, UpdateExtendedFieldsOptions, UpdateExtendedFieldsRequest, UpdateExtendedFieldsResponse, UpdateExtendedFieldsResponseNonNullableFields, UpdateReport, UpdateReportRequest, UpdateReportResponse, UpdateReportResponseNonNullableFields, UpsertReportIdentifiers, UpsertReportOptions, UpsertReportRequest, UpsertReportResponse, UpsertReportResponseNonNullableFields, WebhookIdentityType, } from './reports-v2-report-reports.universal.js';