import { debug, INIT_MESSAGE } from "../utils";
import { init as initApi, InitOptions } from "../api/init";

export * from "../api/identify";
export * from "../api/debug";
export * from "../api/attributes";
export * from "../api/events";
export { terminateSession } from "../api/session";
export { reportError } from "../api/report-error";

export function init(opts: InitOptions): void {
  debug(`${INIT_MESSAGE} (via package)`);
  initApi(opts);
}
