type DisposeFn = () => void; Copy
type DisposeFn = () => void;
Function type for cleanup operations. Called when resources need to be disposed.