import type { DockerHost } from './classes.host.js'; import type { IConfigCreationDescriptor, IConfigSpec } from './interfaces/config.js'; import type { TLabels } from './interfaces/label.js'; import { DockerResource } from './classes.base.js'; export declare class DockerConfig extends DockerResource { /** * Internal: Get all configs * Public API: Use dockerHost.listConfigs() instead */ static _list(dockerHostArg: DockerHost): Promise; /** * Internal: Get config by ID * Public API: Use dockerHost.getConfigById(id) instead */ static _fromId(dockerHostArg: DockerHost, idArg: string): Promise; /** * Internal: Get config by name * Public API: Use dockerHost.getConfigByName(name) instead */ static _fromName(dockerHostArg: DockerHost, nameArg: string): Promise; /** * Internal: Create a config * Public API: Use dockerHost.createConfig(descriptor) instead */ static _create(dockerHostArg: DockerHost, configDescriptorArg: IConfigCreationDescriptor): Promise; ID: string; Spec: IConfigSpec; Version: { Index: number; }; constructor(dockerHostArg: DockerHost); /** * Refreshes this config through direct ID inspection. * @throws If Docker no longer has the config or inspection fails. */ refresh(): Promise; /** * Replaces the complete label map, preserves the inspected Spec, and refreshes. * @param replacementLabelsArg The complete replacement label map. */ updateLabels(replacementLabelsArg: TLabels): Promise; /** * Removes this config. Docker must respond with status 204. */ remove(): Promise; /** * Returns the version label stored in the config Spec. */ getVersion(): Promise; }