export class StubWorktreeHealthProbeGateway {
    signalsByPath = new Map();
    defaultSignals = null;
    probedPaths = [];
    setSignals(path, signals) {
        this.signalsByPath.set(path, signals);
    }
    setDefault(signals) {
        this.defaultSignals = signals;
    }
    async probe(entry) {
        this.probedPaths.push(entry.path);
        const direct = this.signalsByPath.get(entry.path);
        if (direct)
            return direct;
        if (this.defaultSignals !== null)
            return this.defaultSignals;
        return {
            mtime: entry.mtime,
            orphanLock: null,
            unresolvedConflict: false,
        };
    }
}
//# sourceMappingURL=worktreeHealthProbe.stub.js.map