import { BaseApi } from "../base-api"; import type { ApiRecordsV2 } from "../types"; import type { CreateModelRequest, GetModelsParams, Model, ModelCollaborators, ModelOrderBy, ModelParticipants, ModelRepository, ModelRepositoryType, ModelStatus, UpdateModelRequest } from "./types"; /** * A class for accessing the Models API. * @extends BaseApi */ declare class ModelsApi extends BaseApi { /** * Gets a paginated list of models accessible to the authenticated company from the API. * * @param {GetModelsParams} [params] - Optional pagination, repository type, and sort filters. * @returns {Promise>} A promise that resolves with the paginated list of models. */ getModels(params?: GetModelsParams): Promise>; /** * Updates an existing model on the API. * * @param {number} modelId - The ID of the model to update. * @param {UpdateModelRequest} data - The updated data for the model. * @returns {Promise} A promise that resolves with the updated model. */ updateModel(modelId: number, data: UpdateModelRequest): Promise; /** * Deletes (archives) a model from the API. * * @param {number} modelId - The ID of the model to delete. * @returns {Promise} A promise that resolves when the model is deleted. */ deleteModel(modelId: number): Promise; } export { type CreateModelRequest, type GetModelsParams, type Model, type ModelCollaborators, type ModelOrderBy, type ModelParticipants, type ModelRepository, type ModelRepositoryType, type ModelStatus, ModelsApi, type UpdateModelRequest, };