/** * @license SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Utility function to disconnect and clear an array of Handlers. */ import { Disconnectable } from '../types/disconnectable'; /** * Returns a function which when called will remove all elements from the * provided array of handlers and call .disconnect() for each one. * @param handlers List of handlers to clear. * @returns Function which will clear all handlers. */ export declare function clearHandlers(handlers: Disconnectable[]): () => void;