/** * Creates a debounced version of a function that delays its execution until after a specified wait time. * @param func The function to debounce. * @param wait The number of milliseconds to wait before executing the function. * @returns A debounced function. */ export default function debounce void>(func: T, wait: number): (...args: Parameters) => void;