export default function useMountStatus(defaultValue?: T): [T, (next: T | (() => T)) => void];