import { AbstractApiMgr } from '../abstract-api-mgr-command'; import PolicyOrder from '../../../helpers/types/policy-order'; export default class Order extends AbstractApiMgr { static description: string; static flags: { commaSeparated: import("@oclif/core/lib/interfaces").BooleanFlag; help: import("@oclif/core/lib/interfaces").BooleanFlag; output: import("@oclif/core/lib/interfaces").OptionFlag; collectMetrics: import("@oclif/core/lib/interfaces").BooleanFlag; host: import("@oclif/core/lib/interfaces").OptionFlag; environment: import("@oclif/core/lib/interfaces").OptionFlag; organization: import("@oclif/core/lib/interfaces").OptionFlag; bearer: import("@oclif/core/lib/interfaces").OptionFlag; client_secret: import("@oclif/core/lib/interfaces").OptionFlag; client_id: import("@oclif/core/lib/interfaces").OptionFlag; password: import("@oclif/core/lib/interfaces").OptionFlag; username: import("@oclif/core/lib/interfaces").OptionFlag; }; static args: ({ name: string; required: boolean; } | { name: string; required?: undefined; })[]; run(): Promise; private printTable; listAPIInstancePoliciesOrder(orgId: string, env: string, apiInstanceId: string): Promise<{ tableData: { ID: any; 'Asset ID': any; order: any; }[]; rawData: { id: any; order: any; }[]; }>; setNewAPIInstacePoliciesOrder(orgId: string, env: string, apiInstanceId: string, order: PolicyOrder[]): Promise; /** * Validates and processes the policy order array before applying changes. * Performs validation checks and normalizes order numbers sequentially. * Validates that all policies are present in the new order and that no policies are repeated. * Validates that the policies are currently set for the API and abled to be updated. * @param {Array} order - Array of policy order objects to validate and process * @param {String} orgId - Organization ID * @param {String} env - Environment ID * @param {String} apiInstanceId - API instance ID being updated * @param {Array} currentOrder - Current policy order array for validation * @returns {Array} A validated and normalized policy order array * @throws {Error} When validation fails (repeated policies, missing policies, or invalid policy IDs) */ parsePoliciesOrder(order: PolicyOrder[], orgId: string, env: string, apiInstanceId: string, currentOrder: PolicyOrder[]): { id: number; order: number; }[]; checkForRepeatedPolicies(order: PolicyOrder[]): void; checkForAllPolicies(order: PolicyOrder[], currentOrder: PolicyOrder[]): void; /** * Converts a comma-separated list of policy IDs into a policy order array. * Creates policy order objects with sequential order numbers based on list position. * * @param {String} policiesList - Comma-separated string of policy IDs * @returns {Array} An array of policy order objects with id and order fields * @throws {Error} When a policy ID cannot be parsed as a number */ addOrder(policiesList: string): { id: number; order: number; }[]; }