/** * Compile a list of glob strings or RegExps into a flat RegExp[] for fast * matching. Globs support `*` (any chars within a segment) and `**` (any * chars including dots). Empty / null input yields `[]`. * @param {(string[]|RegExp[]|undefined)} patterns * @returns {RegExp[]} */ export function compilePatterns(patterns: (string[] | RegExp[] | undefined)): RegExp[]; /** * @param {RegExp[]} patterns * @param {string} value * @returns {boolean} */ export function matchAny(patterns: RegExp[], value: string): boolean; /** * Typedef Imports */ export type Client = import("../client/Client"); export type PeerLinkOptions = { /** * - patterns of local sub channel * names whose `subs(channel).(...)` calls are forwarded to this * peer as a single coalesced shadow frame `{_proxyrchan:{channel, kind, args}}`. * Patterns are either glob strings (`'WT1.*'`) or `RegExp`s. Default empty * (no shadow forwarding allowed in this direction). */ shadowOut?: (string[] | RegExp[]); /** * - patterns of channel names this * peer is allowed to push shadow frames to us under. Incoming frames with a * channel not matching any pattern are dropped + logged. Default empty. */ shadowIn?: (string[] | RegExp[]); };