import type { Document } from '../../bson'; import type { ReadPreferenceLike } from '../../read_preference'; import { ReadPreference } from '../../read_preference'; import type { Server } from '../../sdam/server'; import type { Topology } from '../../sdam/topology'; import type { OpQueryOptions } from '../commands'; import type { CommandOptions, Connection } from '../connection'; export interface ReadPreferenceOption { readPreference?: ReadPreferenceLike; } export declare function getReadPreference(cmd: Document, options?: ReadPreferenceOption): ReadPreference; export declare function applyCommonQueryOptions(queryOptions: OpQueryOptions, options: CommandOptions): CommandOptions; export declare function isSharded(topologyOrServer?: Topology | Server | Connection): boolean; //# sourceMappingURL=shared.d.ts.map