import type { MittwaldAPIV2 } from "@mittwald/api-client"; import { ProcessRenderer } from "../../../rendering/process/process.js"; type ContainerTemplate = MittwaldAPIV2.Components.Schemas.ContainerTemplate; type TemplateUserInputDefinition = NonNullable[number]; export interface TemplateUserInput { name: string; value: string; } /** * Determines whether an input holds a sensitive value, and should therefore be * masked when prompting for it. Templates mark these inputs with a validation * schema of format "password". */ export declare function isSensitiveInput(definition: TemplateUserInputDefinition): boolean; /** * Resolves the concrete user inputs that should be sent to the API when * creating a stack from a template. * * Values are resolved in the following order of precedence: * * 1. Values explicitly provided by the user (e.g. via `--input name=value`). * 2. For required inputs without a provided value: the template's default value * (if present) or an interactive prompt. * * Optional inputs without a provided value are omitted entirely; the API fills * them from the template defaults. */ export declare function collectTemplateUserInputs(definitions: TemplateUserInputDefinition[], providedInputs: Record, renderer: ProcessRenderer): Promise; export {};