import type { LoggedInMachineConfiguration, LoggedOutMachineConfiguration, MachineConfiguration, ServiceInstance, StepZenCredentialsV2 } from './types.js'; /** * Ensure that the `stepzen-config.yaml` file exists and has valid content. * Cover 3 cases: * - file does not exist (this is the first time the CLI is run) * -> initialize the config file and add a UUID into it * - file exists but does not include a UUID (it was created by an earlier * version of the CLI) * -> add a UUID into the existing config file * - file exists, has stepzen credentials, but does not include an API key * (it was created by an earlier version of the CLI) * -> either fetch the API key from StepZen or remove logged in credentials * * @param {*} maybeConfiguration raw contents of the configuration file * @returns machine configuration along with a flag telling whether or not it * was modified */ export declare const ensureValidConfiguration: (maybeConfiguration: Record | null) => Promise<{ configuration: MachineConfiguration; modified: boolean; }>; export declare const importConfiguration: (filepath: string) => Promise>; export declare const readConfiguration: (configFileName?: string) => Promise; export declare const writeConfiguration: (configuration: MachineConfiguration, configFileName?: string) => Promise; export declare const writeCredentialsAndServiceToConfigFile: (credentials: StepZenCredentialsV2, serviceInstance?: ServiceInstance) => Promise; export declare const constructNewConfig: (oldConfig: MachineConfiguration, credentials: StepZenCredentialsV2) => Promise; export declare const removeCredentialsAndServiceFromConfigFile: () => Promise; export declare function fetchCurrentDockerImageInfo(): Promise<{ image: string; tag: string; } | undefined>; export declare function getStepZenDockerImage(): Promise; //# sourceMappingURL=configuration.d.ts.map