/**
 * Cross-tier channels — the web's equivalent of the React Native bridge.
 *
 * A web app is two programs that talk over a wire the graph cannot see: the
 * page calls `fetch('/api/users', { method: 'POST' })` and the API's
 * `app.post('/api/users', createUser)` answers; a service puts `'welcome'` on
 * the `email` queue and a `@Process('welcome')` method picks it up; a
 * gateway's `this.server.emit('message')` lands in the component that wrote
 * `socket.on('message', …)`. Each hop is a string on both sides, which is the
 * evidence that lets a synthesizer close it — exactly as the RN event channel
 * pairs `sendEvent(withName: "x")` with `addListener('x')`.
 *
 * Three channels, one scan:
 *
 *  1. **`http-client`** — a literal path in a client call (`fetch`, `axios.post`,
 *     `ky`, `got`, `$fetch`, `useFetch`, `useSWR`, or a project instance made by
 *     `axios.create(…)` / `ky.extend(…)`) → the ONE route node `METHOD path` it
 *     denotes. Template holes match a `:param`; a hole in front of the path
 *     (`${API_URL}/users`) matches a route by its tail; a variable url, a path
 *     no route serves, or a path two routes serve alike produce nothing.
 *     Edge: enclosing function → route, `tier: 'client→server'`.
 *  2. **`queue-job`** — `queue.add('job', …)` where the queue is named (`new
 *     Queue('email')`, `@InjectQueue('email')`) → the `@Process('job')` method
 *     of the `@Processor('email')` class, a WorkerHost's `process`, a
 *     `new Worker('email', handler)`, or Bull's `queue.process('job', handler)`.
 *  3. **`event-bus`** — `eventEmitter.emit('user.created')` → `@OnEvent('user.created')`
 *     (globs honoured); and sockets in both directions: a client's
 *     `socket.emit('x')` → the server's `@SubscribeMessage('x')` / `socket.on('x')`
 *     (`tier: 'client→server'`), the server's `server.emit('x')` → the client's
 *     `socket.on('x', …)` (`tier: 'server→client'`). The in-process
 *     `.on('x', fn)` ↔ `.emit('x')` pairing stays the emitter pass's.
 *
 * Every edge is `kind: 'calls'`, `provenance: 'heuristic'`, and carries
 * `synthesizedBy`, `channel` (`http` | `queue` | `event` | `socket`), the
 * `tier` when the direction is known, the `event` / `queue` / `method` /
 * `href` it was paired on, and `registeredAt` — the route registration, the
 * decorator, the `.on` — so a reader can check the pairing. Fan-out is capped
 * per event as the emitter pass caps it; an HTTP pairing needs no cap because
 * it is exact. Test suites and generated files are never sources of these
 * passes: a supertest call is the test's story, and forty of them would make
 * the route a hub. The one exception is section 4, a Spring / Laravel test's
 * request onto its route, whose edges are kept out of fan-in for that reason.
 */
import type { Edge } from '../types';
import type { ResolutionContext } from './types';
import type { MaybeYield } from './cooperative-yield';
export declare const TIER_CLIENT_TO_SERVER = "client\u2192server";
export declare const TIER_SERVER_TO_CLIENT = "server\u2192client";
export declare function hasTestRequestPattern(filePath: string, content: string): boolean;
/** Edges from a test's request to the route it reaches. */
export declare function testRequestEdges(ctx: ResolutionContext, onYield: MaybeYield): Promise<Edge[]>;
export declare function hasCrossTierPattern(content: string): boolean;
export declare function crossTierEdges(ctx: ResolutionContext, onYield: MaybeYield): Promise<Edge[]>;
//# sourceMappingURL=tier-synthesizer.d.ts.map