export declare function debounce void | Promise>(func: F, duration?: number): (...args: Parameters) => void | Promise; export declare function timeout(callback: () => void, duration?: number): () => void;