import type { MobyEndpoints, MobySchemas } from 'docker-api-types'; import type { Effect } from 'docker-api-types/effect'; import { DockerAPIResource } from '../resource'; export type IDResponse = Effect.Effect.Success>; export type ExecsContainerParams = NonNullable[1]>; export type ExecsStartParams = NonNullable[1]>; export type ExecsResizeParams = NonNullable[1]>; export type ExecsInspectParams = NonNullable[0]>; /** * @see https://github.com/leonitousconforti/the-moby-effect/blob/main/src/internal/endpoints/containers.ts * * Run new commands inside running containers. Refer to the command-line * reference for more information. * * To exec a command in a container, you first need to create an exec instance, * then start it. These two API endpoints are wrapped up in a single command-line * command `docker exec`. */ export declare class Execs extends DockerAPIResource { /** * Create an exec instance. * * Run a command inside a running container. * * @see https://docs.docker.com/reference/api/engine/version/v1.51/#tag/Exec/operation/ContainerExec * @see MobyEndpoints.Execs.container */ container(id: string, params: ExecsContainerParams): Promise; /** * Start an exec instance. * * Starts a previously set up exec instance. If detach is true, this endpoint * returns immediately after starting the command. Otherwise, it sets up an * interactive session with the command. * * @see https://docs.docker.com/reference/api/engine/version/v1.51/#tag/Exec/operation/ExecStart * @see MobyEndpoints.Execs.start */ start(id: string, params: ExecsStartParams): Promise; /** * Resize an exec instance. * * Resize the TTY session used by an exec instance. This endpoint only works * if `tty` was specified as part of creating and starting the exec instance. * * @see https://docs.docker.com/reference/api/engine/version/v1.51/#tag/Exec/operation/ExecResize * @see MobyEndpoints.Execs.resize */ resize(id: string, params: ExecsResizeParams): Promise; /** * Inspect an exec instance. * * Return low-level information about an exec instance. * * @see https://docs.docker.com/reference/api/engine/version/v1.51/#tag/Exec/operation/ExecInspect * @see MobyEndpoints.Execs.inspect */ inspect(id: string): Promise; } //# sourceMappingURL=execs.d.ts.map