@jaypie/testkit 1.1.26 → 1.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.d.ts +241 -5
  2. package/dist/index.js +34 -13
  3. package/dist/index.js.map +1 -1
  4. package/dist/matchers/toBeMockFunction.matcher.d.ts +10 -0
  5. package/dist/matchers.module.d.ts +2 -0
  6. package/dist/mock/aws.d.ts +22 -0
  7. package/dist/mock/constants.d.ts +19 -0
  8. package/dist/mock/core.d.ts +306 -0
  9. package/dist/mock/datadog.d.ts +4 -0
  10. package/dist/mock/express.d.ts +32 -0
  11. package/dist/mock/index.d.ts +470 -0
  12. package/dist/mock/index.js +825 -0
  13. package/dist/mock/index.js.map +1 -0
  14. package/dist/mock/jsonApiSchema.module.d.ts +61 -0
  15. package/dist/mock/lambda.d.ts +15 -0
  16. package/dist/mock/llm.d.ts +66 -0
  17. package/dist/mock/matchers/toBeCalledAboveTrace.matcher.d.ts +3 -0
  18. package/dist/mock/matchers/toBeCalledWithInitialParams.matcher.d.ts +4 -0
  19. package/dist/mock/matchers/toBeClass.matcher.d.ts +3 -0
  20. package/dist/mock/matchers/toBeJaypieError.matcher.d.ts +3 -0
  21. package/dist/mock/matchers/toBeMockFunction.matcher.d.ts +10 -0
  22. package/dist/mock/matchers/toMatch.matcher.d.ts +12 -0
  23. package/dist/mock/matchers/toThrowError.matcher.d.ts +4 -0
  24. package/dist/mock/matchers/toThrowJaypieError.matcher.d.ts +16 -0
  25. package/dist/mock/matchers.module.d.ts +97 -0
  26. package/dist/mock/mock/aws.d.ts +22 -0
  27. package/dist/mock/mock/core.d.ts +306 -0
  28. package/dist/mock/mock/datadog.d.ts +4 -0
  29. package/dist/mock/mock/express.d.ts +32 -0
  30. package/dist/mock/mock/index.d.ts +10 -0
  31. package/dist/mock/mock/lambda.d.ts +15 -0
  32. package/dist/mock/mock/llm.d.ts +66 -0
  33. package/dist/mock/mock/mongoose.d.ts +4 -0
  34. package/dist/mock/mock/original.d.ts +19 -0
  35. package/dist/mock/mock/textract.d.ts +14 -0
  36. package/dist/mock/mock/utils.d.ts +42 -0
  37. package/dist/mock/mockLog.module.d.ts +5 -0
  38. package/dist/mock/mongoose.d.ts +4 -0
  39. package/dist/mock/original.d.ts +19 -0
  40. package/dist/mock/placeholders.d.ts +9 -0
  41. package/dist/mock/sqsTestRecords.function.d.ts +14 -0
  42. package/dist/mock/textract.d.ts +14 -0
  43. package/dist/mock/utils.d.ts +42 -0
  44. package/dist/mockLog.module.d.ts +3 -3
  45. package/dist/mockTextract.json +87 -752
  46. package/package.json +7 -4
  47. package/dist/jaypie.mock.d.ts +0 -70
  48. package/dist/jaypie.mock.js +0 -693
  49. package/dist/jaypie.mock.js.map +0 -1
@@ -0,0 +1,470 @@
1
+ import * as original from '@jaypie/core';
2
+ export { log } from '@jaypie/core';
3
+ import * as original$1 from '@jaypie/datadog';
4
+ import * as vitest from 'vitest';
5
+ import * as original$2 from '@jaypie/llm';
6
+ import * as original$3 from '@jaypie/textract';
7
+ export { mongoose } from '@jaypie/mongoose';
8
+
9
+ declare const getMessages: (...args: unknown[]) => unknown;
10
+ declare const getSecret: (...args: unknown[]) => Promise<string>;
11
+ declare const sendMessage: (...args: unknown[]) => Promise<{
12
+ MessageId: string;
13
+ }>;
14
+ declare const getEnvSecret: ((key: string) => Promise<string>) & {
15
+ mock: any;
16
+ };
17
+ declare const getSingletonMessage: (...args: unknown[]) => unknown;
18
+ declare const getTextractJob: ((jobId: string) => Promise<any>) & {
19
+ mock: any;
20
+ };
21
+ declare const sendBatchMessages: (...args: unknown[]) => Promise<boolean>;
22
+ declare const sendTextractJob: (({ bucket, key, featureTypes, }: {
23
+ bucket: string;
24
+ key: string;
25
+ featureTypes?: string[];
26
+ snsRoleArn?: string;
27
+ snsTopicArn?: string;
28
+ }) => Promise<any[]>) & {
29
+ mock: any;
30
+ };
31
+
32
+ declare const BadGatewayError: typeof original.BadGatewayError;
33
+ declare const BadRequestError: typeof original.BadRequestError;
34
+ declare const ConfigurationError: typeof original.ConfigurationError;
35
+ declare const ForbiddenError: typeof original.ForbiddenError;
36
+ declare const GatewayTimeoutError: typeof original.GatewayTimeoutError;
37
+ declare const GoneError: typeof original.GoneError;
38
+ declare const IllogicalError: typeof original.IllogicalError;
39
+ declare const InternalError: typeof original.InternalError;
40
+ declare const MethodNotAllowedError: typeof original.MethodNotAllowedError;
41
+ declare const MultiError: typeof original.ProjectMultiError;
42
+ declare const NotFoundError: typeof original.NotFoundError;
43
+ declare const NotImplementedError: typeof original.NotImplementedError;
44
+ declare const ProjectError: typeof original.ProjectError;
45
+ declare const ProjectMultiError: typeof original.ProjectMultiError;
46
+ declare const RejectedError: typeof original.RejectedError;
47
+ declare const TeapotError: typeof original.TeapotError;
48
+ declare const UnauthorizedError: typeof original.UnauthorizedError;
49
+ declare const UnavailableError: typeof original.UnavailableError;
50
+ declare const UnhandledError: typeof original.UnhandledError;
51
+ declare const UnreachableCodeError: typeof original.UnreachableCodeError;
52
+ declare const validate: {
53
+ (argument: unknown, options?: original.ValidationOptions & {
54
+ type?: unknown;
55
+ }): boolean;
56
+ array<T = unknown>(argument: unknown, options?: original.ValidationOptions): argument is T[];
57
+ boolean(argument: unknown, options?: original.ValidationOptions): argument is boolean;
58
+ class(argument: unknown, options?: original.ValidationOptions): boolean;
59
+ function(argument: unknown, options?: original.ValidationOptions): argument is (...args: unknown[]) => unknown;
60
+ null(argument: unknown, options?: original.ValidationOptions): argument is null;
61
+ number(argument: unknown, options?: original.ValidationOptions): argument is number;
62
+ object<T extends Record<string, unknown> = Record<string, unknown>>(argument: unknown, options?: original.ValidationOptions): argument is T;
63
+ string(argument: unknown, options?: original.ValidationOptions): argument is string;
64
+ undefined(argument: unknown, options?: original.ValidationOptions): argument is undefined;
65
+ optional: {
66
+ array<T = unknown>(argument: unknown, options?: original.ValidationOptions): argument is T[] | undefined;
67
+ boolean(argument: unknown, options?: original.ValidationOptions): argument is boolean | undefined;
68
+ class(argument: unknown, options?: original.ValidationOptions): boolean;
69
+ function(argument: unknown, options?: original.ValidationOptions): argument is ((...args: unknown[]) => unknown) | undefined;
70
+ null(argument: unknown, options?: original.ValidationOptions): argument is null | undefined;
71
+ number(argument: unknown, options?: original.ValidationOptions): argument is number | undefined;
72
+ object<T extends Record<string, unknown> = Record<string, unknown>>(argument: unknown, options?: original.ValidationOptions): argument is T | undefined;
73
+ string(argument: unknown, options?: original.ValidationOptions): argument is string | undefined;
74
+ };
75
+ };
76
+
77
+ declare const cloneDeep: (...args: unknown[]) => unknown;
78
+ declare const envBoolean: (...args: unknown[]) => boolean;
79
+ declare const envsKey: (...args: unknown[]) => unknown;
80
+ declare const errorFromStatusCode: ((statusCode: number, message?: string) => Error) & {
81
+ mock: any;
82
+ };
83
+ declare const formatError: (...args: unknown[]) => unknown;
84
+ declare const getHeaderFrom: (...args: unknown[]) => unknown;
85
+ declare const getObjectKeyCaseInsensitive: (...args: unknown[]) => unknown;
86
+ declare const isClass: (...args: unknown[]) => unknown;
87
+ declare const isJaypieError: (...args: unknown[]) => unknown;
88
+ declare const optional: {
89
+ (value: unknown, type: unknown, options?: Record<string, unknown>): boolean;
90
+ array<T = unknown>(value: unknown): value is T[] | undefined;
91
+ boolean(value: unknown): value is boolean | undefined;
92
+ number(value: unknown): value is number | undefined;
93
+ object<T extends Record<string, unknown> = Record<string, unknown>>(value: unknown): value is T | undefined;
94
+ positive(value: unknown): value is number | undefined;
95
+ string(value: unknown, defaultValue?: string): value is string | undefined;
96
+ };
97
+ declare const required: {
98
+ (value: unknown, type: unknown, options?: Record<string, unknown>): boolean;
99
+ array<T = unknown>(value: unknown): value is T[];
100
+ boolean(value: unknown): value is boolean;
101
+ number(value: unknown): value is number;
102
+ object<T extends Record<string, unknown> = Record<string, unknown>>(value: unknown): value is T;
103
+ positive(value: unknown): value is number;
104
+ string(value: unknown, defaultValue?: string): value is string;
105
+ };
106
+ declare const safeParseFloat: (...args: unknown[]) => unknown;
107
+ declare const placeholders: (...args: unknown[]) => unknown;
108
+ declare const force: {
109
+ (value: unknown, type: unknown, options?: string | {
110
+ key?: string;
111
+ maximum?: number;
112
+ minimum?: number;
113
+ nan?: boolean;
114
+ }): unknown;
115
+ array<T = unknown>(value: unknown): T[];
116
+ boolean(value: unknown): boolean;
117
+ number(value: unknown): number;
118
+ object<T extends Record<string, unknown> = Record<string, unknown>>(value: unknown, key?: string): T;
119
+ positive(value: unknown): number;
120
+ string(value: unknown, defaultValue?: string): string;
121
+ };
122
+ declare const jaypieHandler: ((handler: Function, options?: {
123
+ setup?: Function | Function[];
124
+ teardown?: Function | Function[];
125
+ unavailable?: boolean;
126
+ validate?: Function | Function[];
127
+ }) => Function) & {
128
+ mock: any;
129
+ };
130
+ declare const sleep: (...args: unknown[]) => Promise<boolean>;
131
+ declare const uuid: (...args: unknown[]) => unknown;
132
+ declare const ERROR: {
133
+ MESSAGE: {
134
+ BAD_GATEWAY: "An unexpected error occurred on an upstream resource";
135
+ BAD_REQUEST: "The request was not properly formatted";
136
+ CONFIGURATION_ERROR: "The application responding to the request encountered a configuration error";
137
+ FORBIDDEN: "Access to this resource is not authorized";
138
+ GATEWAY_TIMEOUT: "The connection timed out waiting for an upstream resource";
139
+ GONE: "The requested resource is no longer available";
140
+ ILLOGICAL: "The application encountered an illogical condition while processing the request";
141
+ INTERNAL_ERROR: "An unexpected error occurred and the request was unable to complete";
142
+ METHOD_NOT_ALLOWED: "The requested method is not allowed";
143
+ NOT_FOUND: "The requested resource was not found";
144
+ NOT_IMPLEMENTED: "The request was understood but the resource is not implemented";
145
+ REJECTED: "The request was rejected prior to processing";
146
+ TEAPOT: "This resource is a teapot incapable of processing the request";
147
+ UNAUTHORIZED: "The request did not include valid authentication credentials";
148
+ UNAVAILABLE: "The requested resource is temporarily unavailable";
149
+ UNHANDLED: "An unhandled error occurred and the request was unable to complete";
150
+ UNREACHABLE_CODE: "The application encountered an unreachable condition while processing the request";
151
+ };
152
+ TITLE: {
153
+ BAD_GATEWAY: "Bad Gateway";
154
+ BAD_REQUEST: "Bad Request";
155
+ CONFIGURATION_ERROR: "Internal Configuration Error";
156
+ FORBIDDEN: "Forbidden";
157
+ GATEWAY_TIMEOUT: "Gateway Timeout";
158
+ GONE: "Gone";
159
+ INTERNAL_ERROR: "Internal Application Error";
160
+ METHOD_NOT_ALLOWED: "Method Not Allowed";
161
+ NOT_FOUND: "Not Found";
162
+ NOT_IMPLEMENTED: "Not Implemented";
163
+ REJECTED: "Request Rejected";
164
+ TEAPOT: "Teapot";
165
+ UNAUTHORIZED: "Service Unauthorized";
166
+ UNAVAILABLE: "Service Unavailable";
167
+ };
168
+ TYPE: {
169
+ BAD_GATEWAY: "BAD_GATEWAY";
170
+ BAD_REQUEST: "BAD_REQUEST";
171
+ CONFIGURATION_ERROR: "CONFIGURATION_ERROR";
172
+ FORBIDDEN: "FORBIDDEN";
173
+ GATEWAY_TIMEOUT: "GATEWAY_TIMEOUT";
174
+ GONE: "GONE";
175
+ ILLOGICAL: "ILLOGICAL";
176
+ INTERNAL_ERROR: "INTERNAL_ERROR";
177
+ METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED";
178
+ MULTI_ERROR: "MULTI_ERROR";
179
+ NOT_FOUND: "NOT_FOUND";
180
+ NOT_IMPLEMENTED: "NOT_IMPLEMENTED";
181
+ REJECTED: "REJECTED";
182
+ TEAPOT: "TEAPOT";
183
+ UNAUTHORIZED: "UNAUTHORIZED";
184
+ UNAVAILABLE: "UNAVAILABLE";
185
+ UNHANDLED: "UNHANDLED";
186
+ UNKNOWN_TYPE: "UNKNOWN_TYPE";
187
+ UNREACHABLE_CODE: "UNREACHABLE_CODE";
188
+ };
189
+ };
190
+ declare const HTTP: {
191
+ ALLOW: {
192
+ ANY: "*";
193
+ };
194
+ CODE: {
195
+ OK: 200;
196
+ CREATED: 201;
197
+ ACCEPTED: 202;
198
+ NO_CONTENT: 204;
199
+ FOUND: 302;
200
+ BAD_REQUEST: 400;
201
+ UNAUTHORIZED: 401;
202
+ FORBIDDEN: 403;
203
+ NOT_FOUND: 404;
204
+ METHOD_NOT_ALLOWED: 405;
205
+ CONFLICT: 409;
206
+ GONE: 410;
207
+ TEAPOT: 418;
208
+ INTERNAL_ERROR: 500;
209
+ BAD_GATEWAY: 502;
210
+ UNAVAILABLE: 503;
211
+ GATEWAY_TIMEOUT: 504;
212
+ };
213
+ CONTENT: {
214
+ ANY: "*/*";
215
+ HTML: "text/html";
216
+ JSON: "application/json";
217
+ TEXT: "text/plain";
218
+ };
219
+ HEADER: {
220
+ ACCEPT: "Accept";
221
+ ACCEPT_ENCODING: "Accept-Encoding";
222
+ ALLOW: {
223
+ HEADERS: "Access-Control-Allow-Headers";
224
+ METHODS: "Access-Control-Allow-Methods";
225
+ ORIGIN: "Access-Control-Allow-Origin";
226
+ };
227
+ AMAZON: {
228
+ CF_ID: "X-Amz-Cf-Id";
229
+ CLOUDFRONT_COUNTRY: "CloudFront-Viewer-Country";
230
+ CLOUDFRONT_DESKTOP: "CloudFront-Is-Desktop-Viewer";
231
+ CLOUDFRONT_MOBILE: "CloudFront-Is-Mobile-Viewer";
232
+ CLOUDFRONT_PROTOCOL: "CloudFront-Forwarded-Proto";
233
+ CLOUDFRONT_SMARTTV: "CloudFront-Is-SmartTV-Viewer";
234
+ CLOUDFRONT_TABLET: "CloudFront-Is-Tablet-Viewer";
235
+ TRACE_ID: "X-Amzn-Trace-Id";
236
+ };
237
+ AUTHORIZATION: "Authorization";
238
+ CACHE_CONTROL: "Cache-Control";
239
+ CONTENT_TYPE: "Content-Type";
240
+ COOKIE: {
241
+ REQUEST: "Cookie";
242
+ RESPONSE: "Set-Cookie";
243
+ };
244
+ DATADOG: {
245
+ SESSION_ID: "X-Session-Id";
246
+ };
247
+ FORWARDED: {
248
+ FOR: "X-Forwarded-For";
249
+ PORT: "X-Forwarded-Port";
250
+ PROTOCOL: "X-Forwarded-Proto";
251
+ };
252
+ HOST: "Host";
253
+ ORIGIN: "Origin";
254
+ POSTMAN: {
255
+ TOKEN: "Postman-Token";
256
+ };
257
+ POWERED_BY: "X-Powered-By";
258
+ PROJECT: {
259
+ ACCOUNT: "X-Project-Account";
260
+ CALLER: "X-Project-Caller";
261
+ ENVIRONMENT: "X-Project-Environment";
262
+ KEY: "X-Project-Key";
263
+ HANDLER: "X-Project-Handler";
264
+ INVOCATION: "X-Project-Invocation";
265
+ ROOT_INVOCATION: "X-Project-Root-Invocation";
266
+ SECRET: "X-Project-Secret";
267
+ SEED: "X-Project-Seed";
268
+ SESSION: "X-Project-Session";
269
+ VERSION: "X-Project-Version";
270
+ };
271
+ SIGNATURE: {
272
+ ED25519: "X-Signature-Ed25519";
273
+ TIMESTAMP: "X-Signature-Timestamp";
274
+ };
275
+ USER_AGENT: "User-Agent";
276
+ VIA: "Via";
277
+ };
278
+ METHOD: {
279
+ DELETE: "DELETE";
280
+ HEAD: "HEAD";
281
+ GET: "GET";
282
+ OPTIONS: "OPTIONS";
283
+ POST: "POST";
284
+ PUT: "PUT";
285
+ };
286
+ RESPONSE: Record<string, unknown>;
287
+ };
288
+ declare const JAYPIE: {
289
+ LIB: {
290
+ AWS: "@jaypie/aws";
291
+ CDK: "@jaypie/cdk";
292
+ CONSTRUCTS: "@jaypie/constructs";
293
+ CORE: "@jaypie/core";
294
+ ESLINT: "@jaypie/eslint";
295
+ EXPRESS: "@jaypie/express";
296
+ ERRORS: "@jaypie/errors";
297
+ JAYPIE: "jaypie";
298
+ LAMBDA: "@jaypie/lambda";
299
+ LLM: "@jaypie/llm";
300
+ MONGOOSE: "@jaypie/mongoose";
301
+ TESTKIT: "@jaypie/testkit";
302
+ WEBKIT: "@jaypie/webkit";
303
+ };
304
+ LAYER: {
305
+ EXPRESS: "express";
306
+ HANDLER: "handler";
307
+ JAYPIE: "jaypie";
308
+ LAMBDA: "lambda";
309
+ MODULE: "module";
310
+ };
311
+ LOGGER: {
312
+ DEFAULT: "default";
313
+ MODULE: "module";
314
+ };
315
+ UNKNOWN: "unknown";
316
+ };
317
+ declare const PROJECT: {
318
+ SPONSOR: {
319
+ FINLAYSON: "finlaysonstudio";
320
+ JAYPIE: "jaypie";
321
+ KNOWDEV: "knowdev.studio";
322
+ };
323
+ };
324
+ declare const VALIDATE: {
325
+ ANY: "*";
326
+ ARRAY: ArrayConstructor;
327
+ BOOLEAN: BooleanConstructor;
328
+ CLASS: "_CLASS";
329
+ FUNCTION: FunctionConstructor;
330
+ NUMBER: NumberConstructor;
331
+ NULL: null;
332
+ OBJECT: ObjectConstructor;
333
+ STRING: StringConstructor;
334
+ UNDEFINED: "_UNDEFINED";
335
+ };
336
+
337
+ declare const DATADOG: original$1.DatadogConstants;
338
+ declare const submitMetric: (...args: unknown[]) => Promise<boolean>;
339
+ declare const submitMetricSet: (...args: unknown[]) => Promise<boolean>;
340
+
341
+ declare const EXPRESS: {
342
+ PATH: {
343
+ ANY: "*";
344
+ ID: "/:id";
345
+ ROOT: RegExp;
346
+ };
347
+ };
348
+ declare const badRequestRoute: (...args: unknown[]) => unknown;
349
+ declare const echoRoute: (...args: unknown[]) => unknown;
350
+ declare const forbiddenRoute: (...args: unknown[]) => unknown;
351
+ declare const goneRoute: (...args: unknown[]) => unknown;
352
+ declare const methodNotAllowedRoute: (...args: unknown[]) => unknown;
353
+ declare const noContentRoute: (...args: unknown[]) => unknown;
354
+ declare const notFoundRoute: (...args: unknown[]) => unknown;
355
+ declare const notImplementedRoute: (...args: unknown[]) => unknown;
356
+ declare const expressHttpCodeHandler: (...args: unknown[]) => unknown;
357
+ declare const cors: (...args: unknown[]) => unknown;
358
+ interface ExpressHandlerFunction {
359
+ (req: any, res: any, ...extra: any[]): Promise<any> | any;
360
+ }
361
+ interface ExpressHandlerOptions {
362
+ locals?: Record<string, any>;
363
+ setup?: any[] | Function;
364
+ teardown?: any[] | Function;
365
+ unavailable?: boolean;
366
+ validate?: any[] | Function;
367
+ }
368
+ type ExpressHandlerParameter = ExpressHandlerFunction | ExpressHandlerOptions;
369
+ declare const expressHandler: ((handlerOrProps: ExpressHandlerParameter, propsOrHandler?: ExpressHandlerParameter) => (req: any, res: any, ...extra: any[]) => Promise<any>) & {
370
+ mock: any;
371
+ };
372
+
373
+ type HandlerFunction = (...args: unknown[]) => unknown;
374
+ type LifecycleFunction = (...args: unknown[]) => unknown | Promise<unknown>;
375
+ interface LambdaOptions {
376
+ name?: string;
377
+ setup?: LifecycleFunction | LifecycleFunction[];
378
+ teardown?: LifecycleFunction | LifecycleFunction[];
379
+ throw?: boolean;
380
+ unavailable?: boolean;
381
+ validate?: LifecycleFunction | LifecycleFunction[];
382
+ [key: string]: unknown;
383
+ }
384
+ declare const lambdaHandler: ((handler: HandlerFunction, props?: LambdaOptions) => HandlerFunction) & {
385
+ mock: any;
386
+ };
387
+
388
+ declare const LLM: typeof original$2.LLM;
389
+ declare const Llm: vitest.Mock<(...args: any[]) => any> & {
390
+ operate: (...args: unknown[]) => Promise<{
391
+ history: ({
392
+ content: string;
393
+ role: string;
394
+ type: string;
395
+ id?: undefined;
396
+ status?: undefined;
397
+ } | {
398
+ id: string;
399
+ type: string;
400
+ status: string;
401
+ content: string;
402
+ role: string;
403
+ })[];
404
+ output: {
405
+ id: string;
406
+ type: string;
407
+ status: string;
408
+ content: string;
409
+ role: string;
410
+ }[];
411
+ responses: {
412
+ id: string;
413
+ object: string;
414
+ created_at: number;
415
+ status: string;
416
+ error: null;
417
+ output_text: string;
418
+ }[];
419
+ status: string;
420
+ usage: {
421
+ input: number;
422
+ output: number;
423
+ reasoning: number;
424
+ total: number;
425
+ };
426
+ content: string;
427
+ }>;
428
+ send: (...args: unknown[]) => Promise<string>;
429
+ };
430
+ declare const toolkit: {
431
+ random: (...args: unknown[]) => number;
432
+ roll: (...args: unknown[]) => number;
433
+ time: (...args: unknown[]) => string;
434
+ weather: (...args: unknown[]) => Promise<{
435
+ location: string;
436
+ forecast: {
437
+ date: string;
438
+ temperature: number;
439
+ condition: string;
440
+ precipitation: number;
441
+ }[];
442
+ }>;
443
+ };
444
+ declare const tools: (((...args: unknown[]) => number) | ((...args: unknown[]) => string) | ((...args: unknown[]) => Promise<{
445
+ location: string;
446
+ forecast: {
447
+ date: string;
448
+ temperature: number;
449
+ condition: string;
450
+ precipitation: number;
451
+ }[];
452
+ }>))[];
453
+
454
+ declare const connect: (...args: unknown[]) => boolean;
455
+ declare const connectFromSecretEnv: (...args: unknown[]) => boolean;
456
+ declare const disconnect: (...args: unknown[]) => boolean;
457
+
458
+ /**
459
+ * Mock for MarkdownPage class from @jaypie/textract
460
+ */
461
+ declare const MarkdownPage: typeof original$3.MarkdownPage;
462
+ /**
463
+ * Mock for textractJsonToMarkdown function from @jaypie/textract
464
+ */
465
+ declare const textractJsonToMarkdown: (...args: unknown[]) => string;
466
+
467
+ declare const _default: Record<string, unknown>;
468
+
469
+ export { BadGatewayError, BadRequestError, ConfigurationError, DATADOG, ERROR, EXPRESS, ForbiddenError, GatewayTimeoutError, GoneError, HTTP, IllogicalError, InternalError, JAYPIE, LLM, Llm, MarkdownPage, MethodNotAllowedError, MultiError, NotFoundError, NotImplementedError, PROJECT, ProjectError, ProjectMultiError, RejectedError, TeapotError, UnauthorizedError, UnavailableError, UnhandledError, UnreachableCodeError, VALIDATE, badRequestRoute, cloneDeep, connect, connectFromSecretEnv, cors, _default as default, disconnect, echoRoute, envBoolean, envsKey, errorFromStatusCode, expressHandler, expressHttpCodeHandler, forbiddenRoute, force, formatError, getEnvSecret, getHeaderFrom, getMessages, getObjectKeyCaseInsensitive, getSecret, getSingletonMessage, getTextractJob, goneRoute, isClass, isJaypieError, jaypieHandler, lambdaHandler, methodNotAllowedRoute, noContentRoute, notFoundRoute, notImplementedRoute, optional, placeholders, required, safeParseFloat, sendBatchMessages, sendMessage, sendTextractJob, sleep, submitMetric, submitMetricSet, textractJsonToMarkdown, toolkit, tools, uuid, validate };
470
+ export type { ExpressHandlerFunction, ExpressHandlerOptions, LambdaOptions };