import { BaseApi } from "../base-api"; import type { ApiRecordsV2 } from "../types"; import type { CreateViewRequest, GetViewsParams, OwnedView, SharedView, UpdateViewRequest, View, ViewOwner } from "./types"; /** * A class for accessing the Views API. * @extends BaseApi */ declare class ViewsApi extends BaseApi { /** * Gets a paginated list of accessible views from the API. * * @param {GetViewsParams} [params] - Optional pagination, ownership, tag, owner, status, and keyword filters. * @returns {Promise>} A promise that resolves with the paginated list of views. */ getViews(params?: GetViewsParams): Promise>; /** * Gets a single view from the API by its ID. * * @param {string} viewId - The ID (UUID) of the view to retrieve. * @returns {Promise} A promise that resolves with the view. */ getView(viewId: string): Promise; /** * Deletes (archives) a single view from the API by its ID. * * @param {string} viewId - The ID (UUID) of the view to delete. * @returns {Promise} A promise that resolves when the delete operation is complete. */ deleteView(viewId: string): Promise; /** * Creates a new view on the API. * * @param {CreateViewRequest} data - The data for the new view. * @returns {Promise} A promise that resolves with the newly created view. */ createView(data: CreateViewRequest): Promise; /** * Updates an existing view on the API. * * @param {string} viewId - The ID of the view to update. * @param {UpdateViewRequest} data - The updated data for the view. * @returns {Promise} A promise that resolves with the updated view. */ updateView(viewId: string, data: UpdateViewRequest): Promise; } export { type CreateViewRequest, type GetViewsParams, type OwnedView, type SharedView, type UpdateViewRequest, type View, type ViewOwner, ViewsApi, };