/** * FAKE ids. Never a customer's live identifiers: the widget id and location * id address a real GoHighLevel inbox, and a test that leaks into a real * `fetch` (an unstubbed path, a stray playground, a copied snippet) would * post into that clinic's conversations. The protocol shape is what these * tests assert; the values carry no meaning to it. * * Observed live on iglowmedspa.com 2026-08-17 (recorded in the spec, not * used here): widget `69755082572f850802a198d9`, location `9dUtXPiAbCVZrkqPt9eZ`. */ export declare const LC_TEST_WIDGET = "lc-test-widget"; /** The location id that widget's public config returns. */ export declare const LC_TEST_LOCATION = "lc-test-location"; export type Call = { url: string; init?: RequestInit; }; /** * Every request the stub saw, in order. A stable array identity (cleared in * place by `stubFetch`, never reassigned) so importers can hold the binding * across `stubFetch` calls. */ export declare const calls: Call[]; export declare function jsonResponse(status: number, body: unknown): Response; export interface LcFakeMessage { id: string; body: string; direction: 'inbound' | 'outbound'; dateAdded: string; messageType: number; } /** * The fake conversation store behind the default `send` and `search` * handlers. Chronological, oldest first — `search` derives the wire order * (newest-first) from it, the way the real endpoint does. NOT reset by * `stubFetch` (tests re-stub mid-flow without losing the thread); reset it * in your `beforeEach`. */ export declare const lcServer: { messages: LcFakeMessage[]; reset(): void; /** A message the visitor sent (what the default send handler appends). */ addVisitor(body: string): LcFakeMessage; /** A staff reply landing on the conversation from the GHL inbox side. */ addStaff(body: string): LcFakeMessage; /** The live-verified search contract (see module doc). */ search(url: string): Response; }; /** Mocked network: public config, send (appends to `lcServer` and mints the * identity), search (the behavioral fake above). */ export declare function stubFetch(overrides?: Partial Response>>): void; //# sourceMappingURL=lc-fetch-stub.d.ts.map