import { HttpApi, HttpApiEndpoint, HttpApiGroup, HttpClient } from "@effect/platform"; import { Effect, Schema, Stream, type Layer } from "effect"; import { ContainerCreateRequest, ImageDeleteResponse, ImageHistoryResponseItem, ImageInspectResponse, ImageSummary, JSONMessage, RegistrySearchResult } from "../generated/index.js"; import { DockerError } from "./circular.ts"; import { BadRequest, Conflict, InternalServerError, NotFound } from "./httpApiHacks.js"; declare const ListFilters_base: Schema.transform, Schema.Struct<{ before: Schema.optional>; dangling: Schema.optional; label: Schema.optional>; reference: Schema.optional>; since: Schema.optional>; until: Schema.optional; }>>; /** @since 1.0.0 */ export declare class ListFilters extends ListFilters_base { } declare const SearchFilters_base: Schema.transform, Schema.Struct<{ "is-official": Schema.optional, typeof Schema.BooleanFromString, never>>; "is-automated": Schema.optional, typeof Schema.BooleanFromString, never>>; stars: Schema.optional; }>>; /** @since 1.0.0 */ export declare class SearchFilters extends SearchFilters_base { } /** * @since 1.0.0 * @category HttpApi * @see https://docs.docker.com/reference/api/engine/latest/#tag/Image */ export declare const ImagesApi: HttpApi.HttpApi<"ImagesApi", HttpApiGroup.HttpApiGroup<"images", HttpApiEndpoint.HttpApiEndpoint<"list", "GET", never, { readonly all?: boolean | undefined; readonly filters?: { readonly label?: readonly string[] | undefined; readonly before?: readonly string[] | undefined; readonly since?: readonly string[] | undefined; readonly until?: string | undefined; readonly dangling?: boolean | undefined; readonly reference?: readonly string[] | undefined; } | undefined; readonly digests?: boolean | undefined; readonly "shared-size"?: boolean | undefined; }, never, never, readonly ImageSummary[], never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"build", "POST", never, { readonly platform?: string | undefined; readonly pull?: string | undefined; readonly remote?: string | undefined; readonly version?: "1" | undefined; readonly t?: string | undefined; readonly dockerfile?: string | undefined; readonly extrahosts?: string | undefined; readonly q?: boolean | undefined; readonly nocache?: boolean | undefined; readonly cachefrom?: string | undefined; readonly rm?: boolean | undefined; readonly forcerm?: boolean | undefined; readonly memory?: number | undefined; readonly memswap?: number | undefined; readonly cpushares?: number | undefined; readonly cpusetcpus?: string | undefined; readonly cpuperiod?: number | undefined; readonly cpuquota?: number | undefined; readonly buildargs?: { readonly [x: string]: string | null | undefined; } | undefined; readonly shmsize?: number | undefined; readonly squash?: boolean | undefined; readonly labels?: string | undefined; readonly networkmode?: string | undefined; readonly target?: string | undefined; readonly outputs?: string | undefined; }, never, { readonly "Content-type"?: string | undefined; readonly "X-Registry-Config"?: string | undefined; }, void, BadRequest, never, never> | HttpApiEndpoint.HttpApiEndpoint<"buildPrune", "POST", never, { readonly all?: boolean | undefined; readonly filters?: string | undefined; readonly "keep-storage"?: number | undefined; }, never, never, { readonly SpaceReclaimed: number; readonly CachesDeleted: readonly string[]; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"create", "POST", never, { readonly platform?: string | undefined; readonly tag?: string | undefined; readonly message?: string | undefined; readonly changes?: string | undefined; readonly fromImage?: string | undefined; readonly fromSrc?: string | undefined; readonly repo?: string | undefined; }, never, { readonly "X-Registry-Auth"?: string | undefined; }, void, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"inspect", "GET", { readonly name: string; }, { readonly manifests?: boolean | undefined; }, never, never, ImageInspectResponse, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"history", "GET", { readonly name: string; }, { readonly platform?: string | undefined; }, never, never, readonly ImageHistoryResponseItem[], NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"push", "POST", { readonly name: string; }, { readonly platform?: string | undefined; readonly tag?: string | undefined; }, never, { readonly "X-Registry-Auth"?: string | undefined; }, void, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"tag", "POST", { readonly name: string; }, { readonly tag?: string | undefined; readonly repo?: string | undefined; }, never, never, void, BadRequest | NotFound | Conflict, never, never> | HttpApiEndpoint.HttpApiEndpoint<"delete", "DELETE", { readonly name: string; }, { readonly force?: boolean | undefined; readonly noprune?: boolean | undefined; readonly platforms?: readonly string[] | undefined; }, never, never, readonly ImageDeleteResponse[], NotFound | Conflict, never, never> | HttpApiEndpoint.HttpApiEndpoint<"search", "GET", never, { readonly limit?: number | undefined; readonly filters?: { readonly "is-official"?: boolean | undefined; readonly "is-automated"?: boolean | undefined; readonly stars?: number | undefined; } | undefined; readonly term: string; }, never, never, readonly RegistrySearchResult[], never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"prune", "POST", never, { readonly filters?: string | undefined; }, never, never, { readonly SpaceReclaimed: number; readonly ImagesDeleted: readonly ImageDeleteResponse[] | null | undefined; }, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"commit", "POST", never, { readonly container: string; readonly pause?: boolean | undefined; readonly tag?: string | undefined; readonly changes?: string | undefined; readonly repo?: string | undefined; readonly comment?: string | undefined; readonly author?: string | undefined; }, ContainerCreateRequest, never, ImageInspectResponse, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"export", "GET", { readonly name: string; }, { readonly platform?: string | undefined; }, never, never, void, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"exportMany", "GET", never, { readonly platform?: string | undefined; }, never, never, void, NotFound, never, never> | HttpApiEndpoint.HttpApiEndpoint<"import", "POST", never, { readonly platform?: string | undefined; readonly quiet?: boolean | undefined; }, never, never, void, BadRequest, never, never>, InternalServerError, never, false>, import("@effect/platform/HttpApiError").HttpApiDecodeError, never>; declare const Images_base: Effect.Service.Class]; readonly effect: Effect.Effect<{ list: (options?: { readonly all?: boolean | undefined; readonly filters?: { readonly label?: readonly string[] | undefined; readonly before?: readonly string[] | undefined; readonly since?: readonly string[] | undefined; readonly until?: string | undefined; readonly dangling?: boolean | undefined; readonly reference?: readonly string[] | undefined; } | undefined; readonly digests?: boolean | undefined; readonly "shared-size"?: boolean | undefined; }) => Effect.Effect; build: (context: Stream.Stream, options?: { readonly platform?: string | undefined; readonly pull?: string | undefined; readonly remote?: string | undefined; readonly version?: "1" | undefined; readonly t?: string | undefined; readonly dockerfile?: string | undefined; readonly extrahosts?: string | undefined; readonly q?: boolean | undefined; readonly nocache?: boolean | undefined; readonly cachefrom?: string | undefined; readonly rm?: boolean | undefined; readonly forcerm?: boolean | undefined; readonly memory?: number | undefined; readonly memswap?: number | undefined; readonly cpushares?: number | undefined; readonly cpusetcpus?: string | undefined; readonly cpuperiod?: number | undefined; readonly cpuquota?: number | undefined; readonly buildargs?: { readonly [x: string]: string | null | undefined; } | undefined; readonly shmsize?: number | undefined; readonly squash?: boolean | undefined; readonly labels?: string | undefined; readonly networkmode?: string | undefined; readonly target?: string | undefined; readonly outputs?: string | undefined; }) => Stream.Stream; buildPrune: (options?: { readonly all?: boolean | undefined; readonly filters?: string | undefined; readonly "keep-storage"?: number | undefined; }) => Effect.Effect<{ readonly SpaceReclaimed: number; readonly CachesDeleted: readonly string[]; }, DockerError, never>; create: (options?: { readonly platform?: string | undefined; readonly tag?: string | undefined; readonly message?: string | undefined; readonly changes?: string | undefined; readonly fromImage?: string | undefined; readonly fromSrc?: string | undefined; readonly repo?: string | undefined; }) => Stream.Stream; inspect: (name: string, options?: { readonly manifests?: boolean | undefined; }) => Effect.Effect; history: (name: string, options?: { readonly platform?: string | undefined; }) => Effect.Effect; push: (name: string, options?: { readonly platform?: string | undefined; readonly tag?: string | undefined; }) => Stream.Stream; tag: (name: string, options?: { readonly tag?: string | undefined; readonly repo?: string | undefined; }) => Effect.Effect; delete: (name: string, options?: { readonly force?: boolean | undefined; readonly noprune?: boolean | undefined; readonly platforms?: readonly string[] | undefined; }) => Effect.Effect; search: (options: { readonly limit?: number | undefined; readonly filters?: { readonly "is-official"?: boolean | undefined; readonly "is-automated"?: boolean | undefined; readonly stars?: number | undefined; } | undefined; readonly term: string; }) => Effect.Effect; prune: (options?: { readonly filters?: string | undefined; }) => Effect.Effect<{ readonly SpaceReclaimed: number; readonly ImagesDeleted: readonly ImageDeleteResponse[] | null | undefined; }, DockerError, never>; commit: (payload: ContainerCreateRequest, options: { readonly container: string; readonly pause?: boolean | undefined; readonly tag?: string | undefined; readonly changes?: string | undefined; readonly repo?: string | undefined; readonly comment?: string | undefined; readonly author?: string | undefined; }) => Effect.Effect; export: (name: string, options?: { readonly platform?: string | undefined; }) => Stream.Stream; exportMany: (options?: { readonly platform?: string | undefined; }) => Stream.Stream; import: (context: Stream.Stream, options?: { readonly platform?: string | undefined; readonly quiet?: boolean | undefined; }) => Stream.Stream; }, never, HttpClient.HttpClient>; }>; /** * @since 1.0.0 * @category Services * @see https://docs.docker.com/reference/api/engine/latest/#tag/Image */ export declare class Images extends Images_base { } /** * @since 1.0.0 * @category Services * @see https://docs.docker.com/reference/api/engine/latest/#tag/Image */ export declare const ImagesLayerLocalSocket: Layer.Layer; /** * @since 1.0.0 * @category Services * @see https://docs.docker.com/reference/api/engine/latest/#tag/Image */ export declare const ImagesLayer: Layer.Layer; export {};