import type { Schema, StateBundle, FieldsParam, Entity, ListParams, StateBundleElement, DeepPartial } from "../../types"; import { ResourceApi } from "../common"; type StateBundleSchema = Schema; type StateBundleElementSchema = Schema; type StateBundleEntity = Entity; type StateBundleElementEntity = Entity; export declare class StateBundlesApi extends ResourceApi { /** * Get the list of all available state bundles in the system. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of StateBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of state bundles. */ getStateBundles(params?: FieldsParam & ListParams): Promise[]>; /** * Create a new state bundle in the system. * @param body - The details of the new state bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of StateBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the created state bundle. */ createStateBundle(body: DeepPartial, params?: FieldsParam): Promise>; /** * Get attributes of a state bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param params - Optional parameters for response filtering. * @param params.fields - A list of StateBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the state bundle with the specified ID. */ getStateBundleById(bundleId: string, params?: FieldsParam): Promise>; /** * Update a state bundle with a specific ID. * @param bundleId - The database ID of the bundle. * @param body - The updated state bundle data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of StateBundle attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated state bundle. */ updateStateBundle(bundleId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Delete a state bundle with the specific ID. * @param bundleId - The database ID of the state bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the state bundle is deleted. */ deleteStateBundle(bundleId: string, params?: FieldsParam): Promise>; /** * Get the list of all state values in a specific state bundle. * @param bundleId - The database ID of the state bundle. * @param params - Optional parameters for response filtering and pagination. * @param params.fields - A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @param params.$top - Maximum number of entries to return in the response. * @param params.$skip - Number of entries to skip before returning the first one. * @returns A promise that resolves to the list of state values in the bundle. */ getStateBundleValues(bundleId: string, params?: FieldsParam & ListParams): Promise[]>; /** * Add a new state to the bundle. * @param bundleId - The database ID of the state bundle. * @param body - The details of the new state (required: name). * @param params - Optional parameters for response filtering. * @param params.fields - A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the added state element. */ addStateToBundle(bundleId: string, body: { name: string; } & DeepPartial, params?: FieldsParam): Promise>; /** * Update a specific state value in the bundle. * @param bundleId - The database ID of the state bundle. * @param elementId - The database ID of the state value. * @param body - The updated state value data. * @param params - Optional parameters for response filtering. * @param params.fields - A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves to the updated state element. */ updateStateBundleValue(bundleId: string, elementId: string, body: DeepPartial, params?: FieldsParam): Promise>; /** * Remove a specific state from the bundle. * @param bundleId - The database ID of the state bundle. * @param elementId - The database ID of the state value. * @param params - Optional parameters for response filtering. * @param params.fields - A list of StateBundleElement attributes that should be returned in the response. If no field is specified, only the entityID is returned. * @returns A promise that resolves when the state value is removed. */ removeStateFromBundle(bundleId: string, elementId: string, params?: FieldsParam): Promise>; } export {};