export declare function useToggle(initial?: boolean): [boolean, () => void, <T>(fn: () => Promise<T>) => Promise<T>];
