/** * Docker engine promises api * * @since 1.0.0 */ import type * as Layer from "effect/Layer"; import type * as MobySchemas from "./MobySchemas.ts"; import * as Function from "effect/Function"; import * as Stream from "effect/Stream"; import * as DockerEngine from "./DockerEngine.ts"; /** * Create a promise client for the docker engine * * @since 1.0.0 * @category Promises */ export declare const promiseClient: (layer: Layer.Layer, Layer.Layer.Error | E, Layer.Layer.Context>) => Promise<{ pull: (a: { image: string; platform?: string | undefined; }) => ReadableStream; build: (a: { tag: string; platform?: string | undefined; dockerfile?: string | undefined; context: Stream.Stream; buildargs?: Record | undefined; }) => ReadableStream; stop: (containerId: string) => Promise; start: (containerId: string) => Promise; run: (options: Omit<{ readonly Image: string; readonly Hostname?: string; readonly Domainname?: string; readonly User?: string; readonly AttachStdin?: boolean; readonly AttachStdout?: boolean; readonly AttachStderr?: boolean; readonly ExposedPorts?: { readonly [x: `${number}`]: object; readonly [x: `${number}/tcp`]: object; readonly [x: `${number}/udp`]: object; } | undefined; readonly Tty?: boolean; readonly OpenStdin?: boolean; readonly StdinOnce?: boolean; readonly Env?: readonly string[] | null; readonly Cmd?: readonly string[] | null; readonly Healthcheck?: MobySchemas.V1HealthcheckConfig | undefined; readonly ArgsEscaped?: boolean | undefined; readonly Volumes?: { readonly [x: string]: object; } | null; readonly WorkingDir?: string; readonly Entrypoint?: readonly string[] | null; readonly NetworkDisabled?: boolean | undefined; readonly MacAddress?: string | undefined; readonly OnBuild?: readonly string[] | null | undefined; readonly Labels?: { readonly [x: string]: string; } | null; readonly StopSignal?: string | undefined; readonly StopTimeout?: number | undefined; readonly Shell?: readonly string[] | undefined; readonly HostConfig?: MobySchemas.ContainerHostConfig | undefined; readonly NetworkingConfig?: MobySchemas.NetworkNetworkingConfig | undefined; }, "HostConfig"> & { readonly name?: string | undefined; readonly platform?: string | undefined; readonly HostConfig?: ConstructorParameters[0] | undefined; }) => Promise; exec: (a_0: { command: string | Array; containerId: MobySchemas.ContainerIdentifier; }) => Promise<[exitCode: unknown, output: string]>; execNonBlocking: (a_0: { detach: T; command: string | Array; containerId: MobySchemas.ContainerIdentifier; }) => Promise<[[T] extends [false] ? import("./MobyDemux.ts").MultiplexedSocket | import("./MobyDemux.ts").RawSocket : void, string]>; execWebsockets: (a_0: { command: string | Array; containerId: MobySchemas.ContainerIdentifier; }) => Promise; execWebsocketsNonBlocking: (a: { command: string | Array; containerId: MobySchemas.ContainerIdentifier; cwd?: string | undefined; }) => ReadableStream>; ps: (options?: { readonly size?: boolean | undefined; readonly limit?: number | undefined; readonly all?: boolean | undefined; readonly filters?: { readonly identifier?: readonly string[] | undefined; readonly volume?: string | undefined; readonly exited?: readonly number[] | undefined; readonly name?: readonly string[] | undefined; readonly status?: readonly ("created" | "restarting" | "running" | "removing" | "paused" | "exited" | "dead")[] | undefined; readonly network?: readonly string[] | undefined; readonly label?: readonly string[] | undefined; readonly ancestor?: readonly string[] | undefined; readonly before?: readonly string[] | undefined; readonly expose?: readonly string[] | undefined; readonly health?: readonly ("none" | "starting" | "healthy" | "unhealthy")[] | undefined; readonly "is-task"?: boolean | undefined; readonly publish?: readonly string[] | undefined; readonly since?: readonly string[] | undefined; } | undefined; } | undefined) => Promise; push: (name: string, options: { readonly platform?: string | undefined; readonly tag?: string | undefined; } | undefined) => ReadableStream; images: (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; } | undefined) => Promise; 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; }) => Promise; version: () => Promise; info: () => Promise; ping: () => Promise; pingHead: () => Promise; followProgressInConsole: (evaluate: Function.LazyArg>, onError: (error: unknown) => unknown) => Promise; waitForProgressToComplete: (evaluate: Function.LazyArg>, onError: (error: unknown) => unknown) => Promise; }>;