import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Rulebricks from "../../../index.js"; import { FlowsClient } from "../resources/flows/client/Client.js"; import { FoldersClient } from "../resources/folders/client/Client.js"; import { RulesClient } from "../resources/rules/client/Client.js"; export declare namespace AssetsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Administrative operations for managing rules, flows, folders, and usage */ export declare class AssetsClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _rules: RulesClient | undefined; protected _flows: FlowsClient | undefined; protected _folders: FoldersClient | undefined; constructor(options: AssetsClient.Options); get rules(): RulesClient; get flows(): FlowsClient; get folders(): FoldersClient; /** * Get the rule execution usage of your organization. * * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @example * await client.assets.getUsage() */ getUsage(requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __getUsage; /** * Import rules, flows, contexts, and values from an Rulebricks manifest file (*.rbm). * * @param {Rulebricks.ImportManifestRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Rulebricks.BadRequestError} * @throws {@link Rulebricks.InternalServerError} * * @example * await client.assets.importRbm({ * manifest: { * version: "1.0", * rules: [{ * "name": "Pricing Rule", * "slug": "pricing-rule" * }], * flows: [{ * "name": "Onboarding Flow", * "slug": "onboarding-flow" * }], * entities: [{ * "name": "Customer", * "slug": "customer" * }], * values: [{ * "name": "tax_rate", * "value": 0.08 * }] * }, * conflict_strategy: "update" * }) */ importRbm(request: Rulebricks.ImportManifestRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __importRbm; /** * Export selected rules, flows, contexts, and values to an Rulebricks manifest file (*.rbm). * * @param {Rulebricks.ExportManifestRequest} request * @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Rulebricks.BadRequestError} * @throws {@link Rulebricks.InternalServerError} * * @example * await client.assets.exportRbm({ * root_type: "rule", * root_ids: ["pricing-rule", "eligibility-check"], * include_downstream: false * }) */ exportRbm(request: Rulebricks.ExportManifestRequest, requestOptions?: AssetsClient.RequestOptions): core.HttpResponsePromise; private __exportRbm; }