import { DataStoreLevel } from '../../src/index.js';
import sinon from 'sinon';
import { StoreValidationStateReader } from '../../src/core/validation-state-reader.js';
/**
 * Constructs a `StoreValidationStateReader` over the given (possibly stubbed) stores for tests
 * that build method handlers directly instead of going through `Dwn.create()`.
 * When no `dataStore` is given, a stub whose reads always miss is used.
 */
export function createTestValidationStateReader(input) {
    return new StoreValidationStateReader({
        messageStore: input.messageStore,
        dataStore: input.dataStore ?? sinon.createStubInstance(DataStoreLevel),
        coreProtocols: input.coreProtocols,
    });
}
//# sourceMappingURL=test-validation-state-reader.js.map