/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import type { ISequencedDocumentMessage } from "@fluidframework/driver-definitions/internal"; import type { TelemetryLoggerExt } from "@fluidframework/telemetry-utils/internal"; /** * Extract and return the w3c data. * @param url - request url for which w3c data needs to be reported. * @param initiatorType - type of the network call * @internal */ export declare function getW3CData(url: string, initiatorType: string): { dnsLookupTime: number | undefined; w3cStartTime: number | undefined; redirectTime: number | undefined; tcpHandshakeTime: number | undefined; secureConnectionTime: number | undefined; responseNetworkTime: number | undefined; fetchStartToResponseEndTime: number | undefined; reqStartToResponseEndTime: number | undefined; }; /** * An implementation of Promise.race that gives you the winner of the promise race. * If one of the promises is rejected before any other is resolved, this method will return the error/reason from that rejection. * @internal */ export declare function promiseRaceWithWinner(promises: Promise[]): Promise<{ index: number; value: T; }>; /** * Validates that sequenced messages are contiguous and in the expected range. * * @internal */ export declare function validateMessages(reason: string, messages: ISequencedDocumentMessage[], from: number, logger: TelemetryLoggerExt, strict?: boolean): void; //# sourceMappingURL=driverUtils.d.ts.map