const DEFAULT_SETTINGS = {
  pageSize: 5,
  includePast: false
};
function hydrateNextInteractionsSettings(raw) {
  if (!raw || typeof raw !== "object") return { ...DEFAULT_SETTINGS };
  const input = raw;
  const parsedPageSize = Number(input.pageSize);
  const pageSize = Number.isFinite(parsedPageSize) && parsedPageSize >= 1 && parsedPageSize <= 20 ? Math.floor(parsedPageSize) : DEFAULT_SETTINGS.pageSize;
  return {
    pageSize,
    includePast: typeof input.includePast === "boolean" ? input.includePast : DEFAULT_SETTINGS.includePast
  };
}
export {
  DEFAULT_SETTINGS,
  hydrateNextInteractionsSettings
};
//# sourceMappingURL=config.js.map
