export class StubEnvFileGateway {
    fileStore = new Map();
    gitignoredPaths = new Set();
    writeCallCount = 0;
    ensureGitignoredCallCount = 0;
    read(projectPath) {
        return this.fileStore.get(projectPath) ?? { gitlabSecret: null, githubSecret: null };
    }
    write(projectPath, contents) {
        this.writeCallCount++;
        this.fileStore.set(projectPath, { ...contents });
    }
    ensureGitignored(projectPath) {
        this.ensureGitignoredCallCount++;
        this.gitignoredPaths.add(projectPath);
    }
    seedSecrets(projectPath, gitlabSecret = 'a'.repeat(64), githubSecret = 'b'.repeat(64)) {
        this.fileStore.set(projectPath, { gitlabSecret, githubSecret });
    }
    snapshot(projectPath) {
        const entry = this.fileStore.get(projectPath);
        if (!entry)
            return '';
        return JSON.stringify(entry);
    }
}
//# sourceMappingURL=envFile.stub.js.map