import { D as DbAdapter } from '../types-DdEZ8iqq.mjs'; import './metrics.mjs'; import './flag-types.mjs'; interface ReplicaRouterConfig { /** Primary (writable) database. */ primary: DbAdapter; /** Read replica database. */ replica: DbAdapter; /** * After a write, route reads to primary for this many milliseconds * to ensure read-your-writes consistency. * @default 1000 */ writeThroughMs?: number; } /** * Create a read-replica routing adapter. * * Reads go to the replica by default, but route to primary for * `writeThroughMs` after any write to ensure read-your-writes consistency. */ declare function createReplicaRouter(config: ReplicaRouterConfig): DbAdapter; export { type ReplicaRouterConfig, createReplicaRouter };