import type { ServiceProviderFindCursor, Document, CollationOptions, ReadPreferenceLike, ReadConcernLevel, TagSet, HedgeOptions } from '@mongosh/service-provider-core'; import type Mongo from './mongo'; import { AggregateOrFindCursor } from './aggregate-or-find-cursor'; import type { CursorConstructionOptionsWithChains } from './abstract-cursor'; export default class Cursor extends AggregateOrFindCursor { _tailable: boolean; constructor(mongo: Mongo, cursor: ServiceProviderFindCursor, constructionOptionsWithChains?: CursorConstructionOptionsWithChains); toJSON(): void; private _addFlag; addOption(optionFlagNumber: number): this; allowDiskUse(allow?: boolean): this; allowPartialResults(): this; collation(spec: CollationOptions): this; comment(cmt: string): this; count(): Promise; hasNext(): Promise; hint(index: string): this; limit(value: number): this; max(indexBounds: Document): this; maxAwaitTimeMS(value: number): this; min(indexBounds: Document): this; next(): Promise; noCursorTimeout(): this; oplogReplay(): this; readPref(mode: ReadPreferenceLike, tagSet?: TagSet[], hedgeOptions?: HedgeOptions): this; returnKey(enabled: boolean): this; size(): Promise; tailable(opts?: { awaitData: boolean; }): this; maxScan(): void; showRecordId(): this; readConcern(level: ReadConcernLevel): this; }