/**
  Juju Action version 7.
  This facade is available on:
    Models

  NOTE: This file was generated using the Juju schema
  from Juju 3.3 at the git SHA 65fa4c1ee5.
  Do not manually edit this file.
*/
import { ConnectionInfo, Transport } from "../../client.js";
import { Facade } from "../../types.js";
export interface Action {
    "execution-group"?: string;
    name: string;
    parallel?: boolean;
    parameters?: AdditionalProperties;
    receiver: string;
    tag: string;
}
export interface ActionMessage {
    message: string;
    timestamp: string;
}
export interface ActionResult {
    action?: Action;
    completed?: string;
    enqueued?: string;
    error?: Error;
    log?: ActionMessage[];
    message?: string;
    output?: AdditionalProperties;
    started?: string;
    status?: string;
}
export interface ActionResults {
    results?: ActionResult[];
}
export interface ActionSpec {
    description: string;
    params: AdditionalProperties;
}
export interface Actions {
    actions?: Action[];
}
export interface ApplicationCharmActionsResult {
    actions?: Record<string, ActionSpec>;
    "application-tag"?: string;
    error?: Error;
}
export interface ApplicationsCharmActionsResults {
    results?: ApplicationCharmActionsResult[];
}
export interface EnqueuedActions {
    actions?: ActionResult[];
    operation: string;
}
export interface Entities {
    entities: Entity[];
}
export interface Entity {
    tag: string;
}
export interface Error {
    code: string;
    info?: AdditionalProperties;
    message: string;
}
export interface OperationQueryArgs {
    actions?: string[];
    applications?: string[];
    limit?: number;
    machines?: string[];
    offset?: number;
    status?: string[];
    units?: string[];
}
export interface OperationResult {
    actions?: ActionResult[];
    completed?: string;
    enqueued?: string;
    error?: Error;
    fail?: string;
    operation: string;
    started?: string;
    status?: string;
    summary: string;
}
export interface OperationResults {
    results?: OperationResult[];
    truncated?: boolean;
}
export interface RunParams {
    applications?: string[];
    commands: string;
    "execution-group"?: string;
    machines?: string[];
    parallel?: boolean;
    timeout: number;
    units?: string[];
    "workload-context"?: boolean;
}
export interface StringsWatchResult {
    changes?: string[];
    error?: Error;
    "watcher-id": string;
}
export interface StringsWatchResults {
    results: StringsWatchResult[];
}
export interface AdditionalProperties {
    [key: string]: any;
}
/**
  APIv7 provides the Action API facade for version 7.
*/
declare class ActionV7 implements Facade {
    static NAME: string;
    static VERSION: number;
    NAME: string;
    VERSION: number;
    _transport: Transport;
    _info: ConnectionInfo;
    constructor(transport: Transport, info: ConnectionInfo);
    /**
      Actions takes a list of ActionTags, and returns the full Action for
      each ID.
    */
    actions(params: Entities): Promise<ActionResults>;
    /**
      ApplicationsCharmsActions returns a slice of charm Actions for a slice of
      services.
    */
    applicationsCharmsActions(params: Entities): Promise<ApplicationsCharmActionsResults>;
    /**
      Cancel attempts to cancel enqueued Actions from running.
    */
    cancel(params: Entities): Promise<ActionResults>;
    /**
      EnqueueOperation takes a list of Actions and queues them up to be executed as
      an operation, each action running as a task on the designated ActionReceiver.
      We return the ID of the overall operation and each individual task.
    */
    enqueueOperation(params: Actions): Promise<EnqueuedActions>;
    /**
      ListOperations fetches the called actions for specified apps/units.
    */
    listOperations(params: OperationQueryArgs): Promise<OperationResults>;
    /**
      Operations fetches the specified operation ids.
    */
    operations(params: Entities): Promise<OperationResults>;
    /**
      Run the commands specified on the machines identified through the
      list of machines, units and services.
    */
    run(params: RunParams): Promise<EnqueuedActions>;
    /**
      RunOnAllMachines attempts to run the specified command on all the machines.
    */
    runOnAllMachines(params: RunParams): Promise<EnqueuedActions>;
    /**
      WatchActionsProgress creates a watcher that reports on action log messages.
    */
    watchActionsProgress(params: Entities): Promise<StringsWatchResults>;
}
export default ActionV7;
