import * as React from "react";
import { InitialState } from "./useShuttleState";

/**
 * An internal hook to lazily set the state from a Promise
 * or something that is Promise A+ compliant. We really only
 * want this hook to run when the state is first initialized.
 */
declare export function useAsyncState(
  state: InitialState,
  setShuttleState: React.Dispatch<{ [key: string]: any, ... }>
): void;
