export class StubWorktreeSizeProbeGateway {
    sizesByPath = new Map();
    defaultSize = 0;
    calls = [];
    setSize(path, sizeBytes) {
        this.sizesByPath.set(path, sizeBytes);
    }
    setDefault(sizeBytes) {
        this.defaultSize = sizeBytes;
    }
    async probe(path) {
        this.calls.push(path);
        if (this.sizesByPath.has(path)) {
            return this.sizesByPath.get(path) ?? null;
        }
        return this.defaultSize;
    }
    clearCalls() {
        this.calls.length = 0;
    }
}
//# sourceMappingURL=worktreeSizeProbe.stub.js.map