import { AnalyticsQueryOptions } from './analyticstypes.js'; import { CppDocumentId, CppDurabilityLevel, HiResTime } from './binding.js'; import { AttributeValue, HttpOpType, KeyValueOp, TimeInput } from './observabilitytypes.js'; import { QueryOptions } from './querytypes.js'; /** * @internal */ export type StreamingOptions = AnalyticsQueryOptions | QueryOptions; /** * Generates an absolute Unix epoch time with nanosecond precision. * @internal */ export declare function getEpochHiResTime(): [number, number]; /** * @internal */ export declare function hiResTimeToMicros(hrTime: HiResTime): number; /** * @internal */ export declare function getHiResTimeDelta(start: HiResTime, end: HiResTime): HiResTime; /** * @internal */ export declare function millisToHiResTime(millis: number): HiResTime; /** * @internal */ export declare function getLatestTime(timeA: HiResTime, timeB: HiResTime): HiResTime; /** * @internal */ export declare function getCoreSpanEndTime(coreSpanEndTime: HiResTime): HiResTime; /** * @internal */ export declare function timeInputToHiResTime(input?: TimeInput): HiResTime; /** * A single sub-document spec, reduced to what the tracer may record. `path` is the * targeted field (empty for whole-document specs); `value` is the spec's serialized * value for the `mutateIn` specs that carry one (undefined for `lookupIn` and for * value-less mutations such as `remove`). * * @internal */ export interface SubDocSpecAttribute { path: string; value?: string; } /** * @internal */ export declare function getAttributesForKeyValueOpType(opType: KeyValueOp, cppDocId: CppDocumentId, durability?: CppDurabilityLevel, recordRequestArguments?: boolean, subDocSpecs?: readonly SubDocSpecAttribute[], recordSubDocSpecs?: boolean): { [key: string]: AttributeValue; }; /** * @internal */ export interface HttpOpAttributesOptions { statement?: string; queryOptions?: StreamingOptions; queryContext?: string; bucketName?: string; scopeName?: string; collectionName?: string; } /** * @internal */ export declare function getAttributesForHttpOpType(opType: HttpOpType, options?: HttpOpAttributesOptions, recordRequestArguments?: boolean): { [key: string]: AttributeValue; };