import { AnalyticsQueryOptions } from './analyticstypes'; import { HiResTime } from './binding'; import { DurabilityLevel } from './generaltypes'; import { AttributeValue, HttpOpType, KeyValueOp, TimeInput } from './observabilitytypes'; import { QueryOptions } from './querytypes'; /** * @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; /** * The keyspace a key-value span describes. Neutral, so either protocol can * set the attributes; a classic `CppDocumentId` satisfies it as is. * * @internal */ export interface KeyValueKeyspace { bucket: string; scope: string; collection: string; } /** * The span attribute value for a durability level, or `undefined` when the * level asks for no durability and the attribute is left off. * * @internal */ export declare function durabilityAttributeOf(durability?: DurabilityLevel): string | undefined; /** * @internal */ export declare function getAttributesForKeyValueOpType(opType: KeyValueOp, keyspace: KeyValueKeyspace, durability?: DurabilityLevel): { [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): { [key: string]: AttributeValue; };