// SPDX-License-Identifier: Apache-2.0
export class ExportKubeConfigResponse {
    _rawOutput;
    _kubeConfigContext;
    constructor(_rawOutput) {
        this._rawOutput = _rawOutput;
        // Extract context name
        const contextMatch = this._rawOutput.match(/Set kubectl context to "([^"]+)"/);
        this._kubeConfigContext = contextMatch ? contextMatch[1] : undefined;
    }
    get kubeConfigContext() {
        return this._kubeConfigContext;
    }
}
//# sourceMappingURL=export-kubeconfig-response.js.map