/** What ended a kernel observation stream, deciding how the client recovers. */ export declare enum StreamErrorKind { /** The stream failed for a reason of its own; it is opened again after a backoff. */ Failure = "Failure", /** The client cancelled the stream itself; it is not opened again. */ Cancelled = "Cancelled", /** The kernel is stopping or unreachable; the stream is opened again after a backoff. */ ConnectionLost = "ConnectionLost", /** * The kernel no longer knows this client's connection, for instance after it restarted. Opening the stream again * with the same connection id can never work, so the whole client reconnects with a new one. */ SessionLost = "SessionLost" } /** * Classifies an error that ended a kernel observation stream, looking through wrapping errors. * * An {@link AggregateError} takes the most serious kind among the errors it wraps, in this order: * {@link StreamErrorKind.Failure}, then {@link StreamErrorKind.SessionLost}, then {@link StreamErrorKind.ConnectionLost}, * then {@link StreamErrorKind.Cancelled}. This matches the .NET client. * @param error - The error the stream ended with. * @returns The {@link StreamErrorKind} for the error. */ export declare function classifyStreamError(error: unknown): StreamErrorKind; //# sourceMappingURL=classifyStreamError.d.ts.map