/** * A function for disposing resources. */ export type Dispose = (...args: A) => void; /** * Wraps a function to ensure it is only executed once. * * @param fn - The function to be executed only once. * @returns A new function that calls the original function only the first time it is invoked. */ export declare function disposeOnce(fn: (...args: A) => void): Dispose;