/**
  Juju Subnets version 4.
  This facade is available on:
    Controller-machine-agent
    Machine-agent
    Unit-agent
    Models

  NOTE: This file was generated using the Juju schema
  from Juju 3.0-beta4 at the git SHA a13ab81a.
  Do not manually edit this file.
*/
import { ConnectionInfo, Transport } from "../../client.js";
import { Facade } from "../../types.js";
export interface AddSubnetParams {
    cidr?: string;
    "provider-network-id"?: string;
    "space-tag": string;
    "subnet-provider-id"?: string;
    "vlan-tag"?: number;
    zones?: string[];
}
export interface AddSubnetsParams {
    subnets: AddSubnetParams[];
}
export interface CIDRParams {
    cidrs: string[];
}
export interface Error {
    code: string;
    info?: AdditionalProperties;
    message: string;
}
export interface ErrorResult {
    error?: Error;
}
export interface ErrorResults {
    results: ErrorResult[];
}
export interface ListSubnetsResults {
    results: Subnet[];
}
export interface Subnet {
    cidr: string;
    life: string;
    "provider-id"?: string;
    "provider-network-id"?: string;
    "provider-space-id"?: string;
    "space-tag": string;
    status?: string;
    "vlan-tag": number;
    zones: string[];
}
export interface SubnetV2 {
    Subnet: Subnet;
    cidr: string;
    id?: string;
    life: string;
    "provider-id"?: string;
    "provider-network-id"?: string;
    "provider-space-id"?: string;
    "space-tag": string;
    status?: string;
    "vlan-tag": number;
    zones: string[];
}
export interface SubnetsFilters {
    "space-tag"?: string;
    zone?: string;
}
export interface SubnetsResult {
    error?: Error;
    subnets?: SubnetV2[];
}
export interface SubnetsResults {
    results: SubnetsResult[];
}
export interface ZoneResult {
    available: boolean;
    error?: Error;
    name: string;
}
export interface ZoneResults {
    results: ZoneResult[];
}
export interface AdditionalProperties {
    [key: string]: any;
}
/**
  API provides the subnets API facade for version 4.
*/
declare class SubnetsV4 implements Facade {
    static NAME: string;
    static VERSION: number;
    NAME: string;
    VERSION: number;
    _transport: Transport;
    _info: ConnectionInfo;
    constructor(transport: Transport, info: ConnectionInfo);
    /**
      AddSubnets adds existing subnets to Juju.
    */
    addSubnets(params: AddSubnetsParams): Promise<ErrorResults>;
    /**
      AllZones returns all availability zones known to Juju. If a
      zone is unusable, unavailable, or deprecated the Available
      field will be false.
    */
    allZones(params: any): Promise<ZoneResults>;
    /**
      ListSubnets returns the matching subnets after applying
      optional filters.
    */
    listSubnets(params: SubnetsFilters): Promise<ListSubnetsResults>;
    /**
      SubnetsByCIDR returns the collection of subnets matching each CIDR in the input.
    */
    subnetsByCIDR(params: CIDRParams): Promise<SubnetsResults>;
}
export default SubnetsV4;
