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

//#region src/hooks/useAuth/useAuth.d.ts
type SessionContextProps = {
  session: SessionAPI | null | undefined;
  setSession: (session: SessionAPI | null) => void;
  fetchSession: () => Promise<SessionAPI | null | undefined>;
  revalidateSession: () => Promise<SessionAPI | null | undefined>;
  isAuthenticated: boolean;
  oAuth2AccessToken: OAuth2Token | null | undefined;
};
declare const useAuth: ({
  session: sessionProp,
  intlayerConfiguration
}?: {
  session?: SessionAPI | null;
  intlayerConfiguration?: IntlayerConfig;
}) => SessionContextProps;
//#endregion
export { useAuth };
//# sourceMappingURL=useAuth.d.ts.map