import { IntlayerConfig } from "@intlayer/types";
import { SessionAPI } from "@intlayer/backend";

//#region src/hooks/useAuth/useSession.d.ts
type UseSessionResult = {
  /** The current session: `undefined` while loading, `null` if fetched and no session, otherwise the session. */
  session: SessionAPI | null | undefined;
  /** Refetches the session and returns it (undefined while loading). */
  fetchSession: () => Promise<SessionAPI | null | undefined>;
  /** Alias of `fetchSession` for ergonomics. */
  revalidateSession: () => Promise<SessionAPI | null | undefined>;
  /** Manually set the session cache. */
  setSession: (nextSession: SessionAPI | null) => void;
};
declare function useSession(sessionProp?: SessionAPI | null, intlayerConfiguration?: IntlayerConfig): UseSessionResult;
//#endregion
export { UseSessionResult, useSession };
//# sourceMappingURL=useSession.d.ts.map