I'm familiar with a general Jordan-Brouwer Separation theorem for a compact connected smooth manifold of codimension $1$ in $\mathbb{R}^N$ (i.e. not just hyperspheres). My ultimate goal is to better understand how the analog (in a proper sense) of this theorem carries over to topological manifolds.
This, however, seems to be a very deep result that requires very sophisticated machinery (for a non-expert in graduate-level algebraic topology and differential geometry etc..) with very steep entry barrier.
While I gather more knowledge on the subject (that might take many months), I hope to make a smaller (immediate progress) in this general direction, with the help of those two questions:
The primary question:
Is there a simpler definition/notion of the "inside" and "outside" of $\mathbb{R}^n \setminus Y$, for topological compact connected codimension-1 manifold $Y\subset \mathbb{R}^N$ (with the topology induced by the Euclidian metric)?
Secondary question:
Let $X\subset \mathbb{R}^N$ be compact, connected smooth manifold of codimension-$1$ (a hypersurface). So it has an easy notion of "inside" and "outside" (see in the elaboration below). Map $X$ by a (non-smooth) homeomorphism $h:\mathbb{R}^N \to \mathbb{R}^N$:
(a) Does the image $Y= h(X)$ have a simple definition of the "inside"?
(b) if the answer to (a) is negative, what are some of the mild conditions that need to be imposed on $h$ so that its image does have a simple definition of "inside"?
Any comments, references or intuition why those are still hard questions (or not) $-$ especially anything that helps better understanding the big picture $-$ are welcome.
Elaborations
Here is a quote of Jordan-Brouwer Separation theorem from lecture notes:
Theorem 20.1 [Jordan- Brouwer Separation theorem]: Let $X$ be compact, connected (smooth) manifold of codimension-$1$ in $\mathbb{R}^N$(hypersurface). The complement of $X$ in $\mathbb{R}^N$ consists of two connected open sets, the "outside" $D_0$ and the "inside" $D_1$. Moreover, $\overline{D}_1$ is compact manifold with boundary $X =\partial \overline{D}_1$.
The "inside" is, roughly, all points in $\mathbb{R}^N\setminus X$ (the complement of $X$ in $\mathbb{R}^N$) for which if we send a ray [in general position] from this point[$^*$] and then counts the number of the intersections of this ray with $X$, we have an odd number of intersections then the point is in the "inside" (conversely, if we have even number of cuts the point is in the "outside").
With the above in mind, my primary question is: suppose I have $Y$, compact connected topological manifold. So I lose the notion of transversality etc. Is there still a (relatively) simple notion of the "inside" and "outside" of $\mathbb{R}^n \setminus Y$, if yes how those are defined? Or is this already a "deep question" that requires to dive into algebraic topology and etc...
Possible duplicates
I've searched extensively to find an explanation on StackExchange or other sources: by looking up "inside topological manifold", "separation theorem for topological manifolds", "Simple Alexander duality for non-spheres" etc... but I failed to piece together any answer to my question. I find a lot of sources (here, here, here, here, here, here, the closest to my question is this one) concerned with smooth manifolds or non-smooth cases but concerned only with hyperspheres, or concerned about topology of the compliments (e.g. if it is simply connected, the counter-example of Alexander horned sphere, Alexander duality is stated in terms of hyperspheres, and here I would like to consider not just hyperspheres but compact, connected codimension-$1$ manifold)), or it is stated in a way that (with my current knowledge) is too cryptic to decipher (like here). I hope the way I'm trying to attack this question is simpler and I can make some progress.
[$^*$] A ray is going in a general direction so the ray cuts the manifold $X$ transversally, such rays are dense so we can always find one.