import rawHttp from "k6/http";
import { Rate, Trend } from "k6/metrics";
import { check, fail, group, sleep } from "k6";

export { check, fail, group, sleep };
export { Rate, Trend };
export const http = rawHttp;

export function file(data, filename, contentType) {
  return rawHttp.file(data, filename, contentType);
}

export {
  allMatch,
  contains,
  defaultOptions,
  isSorted,
  json,
  singleIterationOptions,
} from "../runtime-src/k6/checks.js";
export {
  createDalContext,
  openDb,
  truncate,
} from "../runtime-src/k6/dal.js";
export {
  createHttpClient,
  defaultOptions as httpDefaultOptions,
  getEnv,
  makeGetWithHeaders,
  makeRawReq,
  makeReq,
} from "../runtime-src/k6/http.js";
