/**
  Juju Charms version 2.
  This facade is available on:
    Models

  NOTE: This file was generated using the Juju schema
  from Juju 2.8.2 at the git SHA 516c1904ce.
  Do not manually edit this file.
*/
import { ConnectionInfo, Transport } from "../../client.js";
import { Facade } from "../../types.js";
export interface Charm {
    actions?: CharmActions;
    config: Record<string, CharmOption>;
    "lxd-profile"?: CharmLXDProfile;
    meta?: CharmMeta;
    metrics?: CharmMetrics;
    revision: number;
    url: string;
}
export interface CharmActionSpec {
    description: string;
    params: AdditionalProperties;
}
export interface CharmActions {
    specs?: Record<string, CharmActionSpec>;
}
export interface CharmDevice {
    CountMax: number;
    CountMin: number;
    Description: string;
    Name: string;
    Type: string;
}
export interface CharmLXDProfile {
    config: Record<string, string>;
    description: string;
    devices: Record<string, Record<string, string>>;
}
export interface CharmMeta {
    categories?: string[];
    description: string;
    devices?: Record<string, CharmDevice>;
    "extra-bindings"?: Record<string, string>;
    "min-juju-version"?: string;
    name: string;
    "payload-classes"?: Record<string, CharmPayloadClass>;
    peers?: Record<string, CharmRelation>;
    provides?: Record<string, CharmRelation>;
    requires?: Record<string, CharmRelation>;
    resources?: Record<string, CharmResourceMeta>;
    series?: string[];
    storage?: Record<string, CharmStorage>;
    subordinate: boolean;
    summary: string;
    tags?: string[];
    terms?: string[];
}
export interface CharmMetric {
    description: string;
    type: string;
}
export interface CharmMetrics {
    metrics: Record<string, CharmMetric>;
    plan: CharmPlan;
}
export interface CharmOption {
    default?: AdditionalProperties;
    description?: string;
    type: string;
}
export interface CharmPayloadClass {
    name: string;
    type: string;
}
export interface CharmPlan {
    required: boolean;
}
export interface CharmRelation {
    interface: string;
    limit: number;
    name: string;
    optional: boolean;
    role: string;
    scope: string;
}
export interface CharmResourceMeta {
    description: string;
    name: string;
    path: string;
    type: string;
}
export interface CharmStorage {
    "count-max": number;
    "count-min": number;
    description: string;
    location?: string;
    "minimum-size": number;
    name: string;
    properties?: string[];
    "read-only": boolean;
    shared: boolean;
    type: string;
}
export interface CharmURL {
    url: string;
}
export interface CharmsList {
    names: string[];
}
export interface CharmsListResult {
    "charm-urls": string[];
}
export interface IsMeteredResult {
    metered: boolean;
}
export interface AdditionalProperties {
    [key: string]: any;
}
/**
  API implements the charms interface and is the concrete
  implementation of the API end point.
*/
declare class CharmsV2 implements Facade {
    static NAME: string;
    static VERSION: number;
    NAME: string;
    VERSION: number;
    _transport: Transport;
    _info: ConnectionInfo;
    constructor(transport: Transport, info: ConnectionInfo);
    /**
      CharmInfo returns information about the requested charm.
      NOTE: thumper 2016-06-29, this is not a bulk call and probably should be.
    */
    charmInfo(params: CharmURL): Promise<Charm>;
    /**
      IsMetered returns whether or not the charm is metered.
    */
    isMetered(params: CharmURL): Promise<IsMeteredResult>;
    /**
      List returns a list of charm URLs currently in the state.
      If supplied parameter contains any names, the result will be filtered
      to return only the charms with supplied names.
    */
    list(params: CharmsList): Promise<CharmsListResult>;
}
export default CharmsV2;
