import { HttpApi, HttpApiEndpoint, HttpApiGroup, HttpClient } from "@effect/platform"; import { Effect, Schema, type Layer } from "effect"; import { SwarmConfig, SwarmConfigSpec } from "../generated/index.js"; import { ConfigIdentifier } from "../schemas/id.js"; import { DockerError } from "./circular.ts"; import { BadRequest, Conflict, InternalServerError, NotFound } from "./httpApiHacks.ts"; import { NodeNotPartOfSwarm } from "./swarm.js"; declare const ListFilters_base: Schema.transform, Schema.Struct<{ id: Schema.optional>; name: Schema.optional>; names: Schema.optional>; label: Schema.optional>; }>>; /** @since 1.0.0 */ export declare class ListFilters extends ListFilters_base { } /** * Configs are application configurations that can be used by services. Swarm * mode must be enabled for these endpoints to work. * * @since 1.0.0 * @category HttpApi * @see https://docs.docker.com/reference/api/engine/latest/#tag/Config */ export declare const ConfigsApi: HttpApi.HttpApi<"ConfigsApi", HttpApiGroup.HttpApiGroup<"configs", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, { readonly filters?: { readonly name?: readonly string[] | undefined; readonly id?: readonly string[] | undefined; readonly names?: readonly string[] | undefined; readonly label?: readonly string[] | undefined; } | undefined; }, never, never, readonly SwarmConfig[], never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, never, SwarmConfigSpec, never, { readonly Id: string; }, Conflict, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inspect", "GET", { readonly identifier: string; }, never, never, never, SwarmConfig, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", { readonly identifier: string; }, never, never, never, void, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"update", "POST", { readonly identifier: string; }, { readonly version: bigint; }, SwarmConfigSpec, never, void, BadRequest | NotFound, never, never>, InternalServerError | NodeNotPartOfSwarm, never, false>, import("@effect/platform/HttpApiError").HttpApiDecodeError, never>; declare const Configs_base: Effect.Service.Class]; readonly effect: Effect.Effect<{ list: (filters?: Schema.Schema.Type | undefined) => Effect.Effect; create: (props: { readonly Labels: { readonly [x: string]: string; } | null; readonly Name?: string | undefined; readonly Data?: Uint8Array | undefined; readonly Templating?: import("../generated/SwarmDriver.generated.ts").SwarmDriver | undefined; }, options?: Schema.MakeOptions | undefined) => Effect.Effect<{ readonly Id: string; }, DockerError, never>; inspect: (identifier: ConfigIdentifier) => Effect.Effect; delete: (identifier: ConfigIdentifier) => Effect.Effect; update: (identifier: ConfigIdentifier, version: bigint, props: { readonly Labels: { readonly [x: string]: string; } | null; readonly Name?: string | undefined; readonly Data?: Uint8Array | undefined; readonly Templating?: import("../generated/SwarmDriver.generated.ts").SwarmDriver | undefined; }, options?: Schema.MakeOptions | undefined) => Effect.Effect; }, never, HttpClient.HttpClient>; }>; /** * Configs are application configurations that can be used by services. Swarm * mode must be enabled for these endpoints to work. * * @since 1.0.0 * @category Services * @see https://docs.docker.com/reference/api/engine/latest/#tag/Config */ export declare class Configs extends Configs_base { } /** * Configs are application configurations that can be used by services. Swarm * mode must be enabled for these endpoints to work. * * @since 1.0.0 * @category Layers * @see https://docs.docker.com/reference/api/engine/latest/#tag/Config */ export declare const ConfigsLayerLocalSocket: Layer.Layer; /** * Configs are application configurations that can be used by services. Swarm * mode must be enabled for these endpoints to work. * * @since 1.0.0 * @category Layers * @see https://docs.docker.com/reference/api/engine/latest/#tag/Config */ export declare const ConfigsLayer: Layer.Layer; export {};