/** * Lit SDK global parameter handling (chipotle / V8 style). * * `jsParams` is nested under `globalThis.jsParams`. Call * {@link mergeJsParamsOntoGlobalThis} once at the start of an action so code * that reads `globalThis.chain` (etc.) works with flat access. Use * {@link getLitActionParams} when you need a single object reference. */ /** Minimal shape for the V8 nested bag (values are merged onto globalThis). */ export type LitJsParams = Record; /** * Copy `globalThis.jsParams` onto `globalThis` so flat reads work (V8 compat). * No-op when `jsParams` is missing or not a plain object. */ export declare function mergeJsParamsOntoGlobalThis(): void; /** * Parameter object for the current execution: nested `jsParams` (V8) or the global * object itself (V7). Prefer calling after {@link mergeJsParamsOntoGlobalThis} when * other code expects flat `globalThis` fields. */ export declare function getLitActionParams>(): T; /** * Safe message extraction for `catch (error: unknown)` paths. */ export declare function getUnknownErrorMessage(error: unknown): string; /** * Whether an unknown error is an AbortError (fetch timeout / abort). */ export declare function isAbortError(error: unknown): boolean; //# sourceMappingURL=lit-global-bootstrap.d.ts.map