const registry = new WeakSet();
/**
* @internal Please do not use directly.
* 
* @deprecated This is an internal API and should not be used directly. This can be removed or changed at any time.
*/
export function registerLinkError(error) {
    registry.add(error);
}
/**
 * A facade error type that keeps a registry of errors emitted from the link
 * chain. Determine if an error is from the link chain using `NetworkError.is`.
 */
export const LinkError = {
    /**
     * Determine if the error is an error emitted from the link chain.
     */
    is: (error) => registry.has(error),
};
//# sourceMappingURL=LinkError.js.map
