function t({
  networkOperation: o,
  params: s,
  withToast: e = {}
}) {
  return o({
    method: "GET",
    endPoint: "cookies",
    parms: s ?? {},
    toastSuccess: e?.success ?? !1,
    toastError: e?.error ?? !1
  });
}
function c({
  networkOperation: o,
  endPoint: s,
  value: e,
  withToast: r = {}
}) {
  return o({
    method: "PUT",
    endPoint: `cookies/${s}`,
    data: { value: JSON.stringify(e) },
    toastSuccess: r?.success ?? !1,
    toastError: r?.error ?? !1
  });
}
function n({
  networkOperation: o,
  data: s,
  withToast: e = {}
}) {
  return o({
    method: "DELETE",
    endPoint: "cookies",
    data: s,
    toastSuccess: e?.success ?? !1,
    toastError: e?.error ?? !1
  });
}
export {
  n as deleteCookie,
  t as getCookie,
  c as setCookie
};
