Given a topological space $(X,\tau)$ and the product space $(X^2,\tau_2)$.
Define the diagonal $\Delta X^2=\{(x,x)\,|\,x\in X\}$ and a set
$\mathbf S_\tau=\{\mathcal A\in\tau_2|\Delta X^2\subseteq\mathcal A\}$.
Then $\mathbf S_\tau$ provides some kind of $\delta$-$\epsilon$ arrangement for the elements in $X$, since one can formulate conditions as $\forall\mathcal A\in\mathbf S: (x,y)\in \mathcal A$, which asserts that $(x,y)$ is "close to the diagonal" and therefore that $x$ "is close to" $y$.
Suppose $f:X\to X'$ is a function between topological spaces, then the question is
If
$\forall x\in \!X\,\forall \mathcal E'\!\in \mathbf S'\,\exists\mathcal D\in\mathbf
S\,\forall y\in \!X: [(x,y)\in\mathcal D\implies(f(x),f(y))\in\mathcal E']$
then $f$ is continuous?
If not, perhaps under the condition that the spaces $X,X'$ are Hausdorff?
Assume that $X'$ is $T_1$. Suppose that $x\in X$, and $f(x)=y$, and let $U$ be any open nbhd of $y$ in $X'$. Then $$N'=(U\times U)\cup\big((X'\setminus\{y\})\times(X'\setminus\{y\})\big)$$ is an open nbhd of the diagonal in $X'\times X'$. By hypothesis there is an open nbhd $N$ of the diagonal in $X$ such that $\langle f(x),f(z)\rangle\in N'$ whenever $\langle x,z\rangle\in N$. Note that $\langle f(x),f(z)\rangle=\langle y,f(z)\rangle\in N'$ iff $f(z)\in U$. Let $V=\{z\in X:\langle x,z\rangle\in N\}$; $V$ is an open nbhd of $x$ in $X$, and $f[V]\subseteq U$. Thus, $f$ is continuous at $x$, and since $x\in X$ was arbitrary, $f$ is continuous.
Added: Note that every continuous function $f:X\to X'$ satisfies the condition. If $N'$ is an open nbhd of the diagonal in $X'\times X'$, and $f:X\to X'$ is continuous, then the function
$$g:X\times X\to X'\times X':\langle x,y\rangle\mapsto\langle f(x),f(y)\rangle$$
is continuous, so $N=g^{-1}[N]$ is an open nbhd of the diagonal in $X\times X$, and it’s clear that if $\langle x,y\rangle\in N$, then $\langle f(x),f(y)\rangle\in N'$. Thus, the condition is equivalent to continuity when $X'$ is $T_1$.