/****************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation. * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 *****************************************************************************/ export interface DebouncedCallback void> { (...args: Parameters): void; cancel: () => void; } /** * Returns a stable function that delays invoking `callback` until `delay` ms * have elapsed since the last call. Always invokes the most recent `callback`. * The returned function also exposes `cancel` to drop a pending invocation. */ export declare function useDebouncedCallback void>(callback: T, delay?: number): DebouncedCallback; //# sourceMappingURL=use-debounced-callback.d.ts.map