exoagent 0.0.1 → 0.0.2

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.
package/dist/index.d.mts DELETED
@@ -1,426 +0,0 @@
1
- import { Tool } from "ai";
2
- import * as kysely0 from "kysely";
3
- import { CompiledQuery, Dialect, RawBuilder } from "kysely";
4
- import { StandardSchemaV1 } from "@standard-schema/spec";
5
-
6
- //#region packages/capnweb/dist/index.d.ts
7
-
8
- // Branded types for identifying `WorkerEntrypoint`/`DurableObject`/`Target`s.
9
- // TypeScript uses *structural* typing meaning anything with the same shape as type `T` is a `T`.
10
- // For the classes exported by `cloudflare:workers` we want *nominal* typing (i.e. we only want to
11
- // accept `WorkerEntrypoint` from `cloudflare:workers`, not any other class with the same shape)
12
- declare const __RPC_STUB_BRAND: '__RPC_STUB_BRAND';
13
- declare const __RPC_TARGET_BRAND: '__RPC_TARGET_BRAND';
14
- interface RpcTargetBranded {
15
- [__RPC_TARGET_BRAND]: never;
16
- }
17
-
18
- // Types that can be used through `Stub`s
19
- type Stubable = RpcTargetBranded | ((...args: any[]) => any);
20
-
21
- // Types that can be passed over RPC
22
- // The reason for using a generic type here is to build a serializable subset of structured
23
- // cloneable composite types. This allows types defined with the "interface" keyword to pass the
24
- // serializable check as well. Otherwise, only types defined with the "type" keyword would pass.
25
- type RpcCompatible<T> =
26
- // Structured cloneables
27
- BaseType
28
- // Structured cloneable composites
29
- | Map<T extends Map<infer U, unknown> ? RpcCompatible<U> : never, T extends Map<unknown, infer U> ? RpcCompatible<U> : never> | Set<T extends Set<infer U> ? RpcCompatible<U> : never> | Array<T extends Array<infer U> ? RpcCompatible<U> : never> | ReadonlyArray<T extends ReadonlyArray<infer U> ? RpcCompatible<U> : never> | { [K in keyof T]: K extends number | string ? RpcCompatible<T[K]> : never } | Promise<T extends Promise<infer U> ? RpcCompatible<U> : never>
30
- // Special types
31
- | Stub<Stubable>
32
- // Serialized as stubs, see `Stubify`
33
- | Stubable;
34
-
35
- // Base type for all RPC stubs, including common memory management methods.
36
- // `T` is used as a marker type for unwrapping `Stub`s later.
37
- interface StubBase<T extends RpcCompatible<T>> extends Disposable {
38
- [__RPC_STUB_BRAND]: T;
39
- dup(): this;
40
- onRpcBroken(callback: (error: any) => void): void;
41
- }
42
- type Stub<T extends RpcCompatible<T>> = T extends object ? Provider<T> & StubBase<T> : StubBase<T>;
43
- type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | BigUint64Array | BigInt64Array | Float32Array | Float64Array;
44
-
45
- // This represents all the types that can be sent as-is over an RPC boundary
46
- type BaseType = void | undefined | null | boolean | number | bigint | string | TypedArray | ArrayBuffer | DataView | Date | Error | RegExp | ReadableStream<Uint8Array> | WritableStream<Uint8Array> | Request | Response | Headers;
47
- // Recursively rewrite all `Stubable` types with `Stub`s, and resolve promises.
48
- // prettier-ignore
49
- type Stubify<T> = T extends Stubable ? Stub<T> : T extends Promise<infer U> ? Stubify<U> : T extends StubBase<any> ? T : T extends Map<infer K, infer V> ? Map<Stubify<K>, Stubify<V>> : T extends Set<infer V> ? Set<Stubify<V>> : T extends [] ? [] : T extends [infer Head, ...infer Tail] ? [Stubify<Head>, ...Stubify<Tail>] : T extends readonly [] ? readonly [] : T extends readonly [infer Head, ...infer Tail] ? readonly [Stubify<Head>, ...Stubify<Tail>] : T extends Array<infer V> ? Array<Stubify<V>> : T extends ReadonlyArray<infer V> ? ReadonlyArray<Stubify<V>> : T extends BaseType ? T
50
- // When using "unknown" instead of "any", interfaces are not stubified.
51
- : T extends {
52
- [key: string | number]: any;
53
- } ? { [K in keyof T]: Stubify<T[K]> } : T;
54
-
55
- // Recursively rewrite all `Stub<T>`s with the corresponding `T`s.
56
- // Note we use `StubBase` instead of `Stub` here to avoid circular dependencies:
57
- // `Stub` depends on `Provider`, which depends on `Unstubify`, which would depend on `Stub`.
58
- // prettier-ignore
59
- type UnstubifyInner<T> = T extends StubBase<infer V> ? (T | V) // can provide either stub or local RpcTarget
60
- : T extends Map<infer K, infer V> ? Map<Unstubify<K>, Unstubify<V>> : T extends Set<infer V> ? Set<Unstubify<V>> : T extends [] ? [] : T extends [infer Head, ...infer Tail] ? [Unstubify<Head>, ...Unstubify<Tail>] : T extends readonly [] ? readonly [] : T extends readonly [infer Head, ...infer Tail] ? readonly [Unstubify<Head>, ...Unstubify<Tail>] : T extends Array<infer V> ? Array<Unstubify<V>> : T extends ReadonlyArray<infer V> ? ReadonlyArray<Unstubify<V>> : T extends BaseType ? T : T extends {
61
- [key: string | number]: unknown;
62
- } ? { [K in keyof T]: Unstubify<T[K]> } : T;
63
-
64
- // You can put promises anywhere in the params and they'll be resolved before delivery.
65
- // (This also covers RpcPromise, because it's defined as being a Promise.)
66
- type Unstubify<T> = UnstubifyInner<T> | Promise<UnstubifyInner<T>>;
67
- type UnstubifyAll<A extends any[]> = { [I in keyof A]: Unstubify<A[I]> };
68
-
69
- // Utility type for adding `Disposable`s to `object` types only.
70
- // Note `unknown & T` is equivalent to `T`.
71
- type MaybeDisposable<T> = T extends object ? Disposable : unknown;
72
-
73
- // Type for method return or property on an RPC interface.
74
- // - Stubable types are replaced by stubs.
75
- // - RpcCompatible types are passed by value, with stubable types replaced by stubs
76
- // and a top-level `Disposer`.
77
- // Everything else can't be passed over RPC.
78
- // Technically, we use custom thenables here, but they quack like `Promise`s.
79
- // Intersecting with `(Maybe)Provider` allows pipelining.
80
- // prettier-ignore
81
- type Result<R$1> = R$1 extends Stubable ? Promise<Stub<R$1>> & Provider<R$1> & StubBase<R$1> : R$1 extends RpcCompatible<R$1> ? Promise<Stubify<R$1> & MaybeDisposable<R$1>> & Provider<R$1> & StubBase<R$1> : never;
82
-
83
- // Type for method or property on an RPC interface.
84
- // For methods, unwrap `Stub`s in parameters, and rewrite returns to be `Result`s.
85
- // Unwrapping `Stub`s allows calling with `Stubable` arguments.
86
- // For properties, rewrite types to be `Result`s.
87
- // In each case, unwrap `Promise`s.
88
- type MethodOrProperty<V$1> = V$1 extends ((...args: infer P) => infer R) ? (...args: UnstubifyAll<P>) => Result<Awaited<R>> : Result<Awaited<V$1>>;
89
-
90
- // Type for the callable part of an `Provider` if `T` is callable.
91
- // This is intersected with methods/properties.
92
- type MaybeCallableProvider<T> = T extends ((...args: any[]) => any) ? MethodOrProperty<T> : unknown;
93
-
94
- // Base type for all other types providing RPC-like interfaces.
95
- // Rewrites all methods/properties to be `MethodOrProperty`s, while preserving callable types.
96
- type Provider<T> = MaybeCallableProvider<T> & (T extends Array<infer U> ? {
97
- [key: number]: MethodOrProperty<U>;
98
- } & {
99
- map<V$1>(callback: (elem: U) => V$1): Result<Array<V$1>>;
100
- } : { [K in Exclude<keyof T, symbol | keyof StubBase<never>>]: MethodOrProperty<T[K]> } & {
101
- map<V$1>(callback: (value: NonNullable<T>) => V$1): Result<Array<V$1>>;
102
- });
103
- /**
104
- * Options to customize behavior of an RPC session. All functions which start a session should
105
- * optionally accept this.
106
- */
107
- type RpcSessionOptions = {
108
- /**
109
- * If provided, this function will be called whenever an `Error` object is serialized (for any
110
- * reason, not just because it was thrown). This can be used to log errors, and also to redact
111
- * them.
112
- *
113
- * If `onSendError` returns an Error object, than object will be substituted in place of the
114
- * original. If it has a stack property, the stack will be sent to the client.
115
- *
116
- * If `onSendError` doesn't return anything (or is not provided at all), the default behavior is
117
- * to serialize the error with the stack omitted.
118
- */
119
- onSendError?: (error: Error) => Error | void;
120
- };
121
-
122
- /**
123
- * For use in Cloudflare Workers: Construct an HTTP response that starts a WebSocket RPC session
124
- * with the given `localMain`.
125
- */
126
-
127
- /**
128
- * Represents a reference to a remote object, on which methods may be remotely invoked via RPC.
129
- *
130
- * `RpcStub` can represent any interface (when using TypeScript, you pass the specific interface
131
- * type as `T`, but this isn't known at runtime). The way this works is, `RpcStub` is actually a
132
- * `Proxy`. It makes itself appear as if every possible method / property name is defined. You can
133
- * invoke any method name, and the invocation will be sent to the server. If it turns out that no
134
- * such method exists on the remote object, an exception is thrown back. But the client does not
135
- * actually know, until that point, what methods exist.
136
- */
137
- type RpcStub<T extends RpcCompatible<T>> = Stub<T>;
138
- declare const RpcStub: {
139
- new <T extends RpcCompatible<T>>(value: T): RpcStub<T>;
140
- };
141
- /**
142
- * Represents the result of an RPC call.
143
- *
144
- * Also used to represent properties. That is, `stub.foo` evaluates to an `RpcPromise` for the
145
- * value of `foo`.
146
- *
147
- * This isn't actually a JavaScript `Promise`. It does, however, have `then()`, `catch()`, and
148
- * `finally()` methods, like `Promise` does, and because it has a `then()` method, JavaScript will
149
- * allow you to treat it like a promise, e.g. you can `await` it.
150
- *
151
- * An `RpcPromise` is also a proxy, just like `RpcStub`, where calling methods or awaiting
152
- * properties will make a pipelined network request.
153
- *
154
- * Note that and `RpcPromise` is "lazy": the actual final result is not requested from the server
155
- * until you actually `await` the promise (or call `then()`, etc. on it). This is an optimization:
156
- * if you only intend to use the promise for pipelining and you never await it, then there's no
157
- * need to transmit the resolution!
158
- */
159
-
160
- /**
161
- * Classes which are intended to be passed by reference and called over RPC must extend
162
- * `RpcTarget`. A class which does not extend `RpcTarget` (and which doesn't have built-in support
163
- * from the RPC system) cannot be passed in an RPC message at all; an exception will be thrown.
164
- *
165
- * Note that on Cloudflare Workers, this `RpcTarget` is an alias for the one exported from the
166
- * "cloudflare:workers" module, so they can be used interchangably.
167
- */
168
- interface RpcTarget extends RpcTargetBranded {}
169
- declare const RpcTarget: {
170
- new (): RpcTarget;
171
- };
172
- /**
173
- * Empty interface used as default type parameter for sessions where the other side doesn't
174
- * necessarily export a main interface.
175
- */
176
- interface Empty {}
177
- /**
178
- * Start a WebSocket session given either an already-open WebSocket or a URL.
179
- *
180
- * @param webSocket Either the `wss://` URL to connect to, or an already-open WebSocket object to
181
- * use.
182
- * @param localMain The main RPC interface to expose to the peer. Returns a stub for the main
183
- * interface exposed from the peer.
184
- */
185
- declare let newWebSocketRpcSession: <T extends RpcCompatible<T> = Empty>(webSocket: WebSocket | string, localMain?: any, options?: RpcSessionOptions) => RpcStub<T>;
186
- /**
187
- * Initiate an HTTP batch session from the client side.
188
- *
189
- * The parameters to this method have exactly the same signature as `fetch()`, but the return
190
- * value is an RpcStub. You can customize anything about the request except for the method
191
- * (it will always be set to POST) and the body (which the RPC system will fill in).
192
- */
193
-
194
- /**
195
- * Implements unified handling of HTTP-batch and WebSocket responses for the Cloudflare Workers
196
- * Runtime.
197
- *
198
- * SECURITY WARNING: This function accepts cross-origin requests. If you do not want this, you
199
- * should validate the `Origin` header before calling this, or use `newHttpBatchRpcSession()` and
200
- * `newWebSocketRpcSession()` directly with appropriate security measures for each type of request.
201
- * But if your API uses in-band authorization (i.e. it has an RPC method that takes the user's
202
- * credentials as parameters and returns the authorized API), then cross-origin requests should
203
- * be safe.
204
- */
205
- declare function newWorkersRpcResponse(request: Request, localMain: any): Promise<Response>;
206
- //#endregion
207
- //#region src/rpc-toolset.d.ts
208
- declare function toolDef(): <This, Return>(target: (this: This) => Return, context: ClassMethodDecoratorContext<This, (this: This) => Return>) => (this: This) => Return;
209
- declare function toolDef<TInput>(inputSchema: StandardSchemaV1<TInput, TInput>): <This, Return>(target: (this: This, arg: TInput) => Return, context: ClassMethodDecoratorContext<This, (this: This, arg: TInput) => Return>) => (this: This, arg: TInput) => Return;
210
- declare function toolUnsafeNoValidation(): <This, Return>(target: (this: This, ...args: any[]) => Return, context: ClassMethodDecoratorContext<This, (...unknown: any[]) => Return>) => any;
211
- declare const callbackMetadataKey: unique symbol;
212
- type ToolCallback<T extends (arg: any) => unknown> = T | {
213
- [callbackMetadataKey]: {
214
- callback: T;
215
- };
216
- };
217
- type Fn = ToolCallback<(arg: any) => any>;
218
- declare function callbackTool(): <This, Return>(target: (this: This, arg: Fn) => Return, context: ClassMethodDecoratorContext<This, (this: This, arg: Fn) => Return>) => (this: This, arg: Fn) => Return;
219
- declare const unwrapCallback: <A, V$1>(toolCallback: ToolCallback<(arg: A) => V$1>, returnSchema: StandardSchemaV1<V$1, V$1> | ((arg: unknown) => arg is V$1)) => <R$1>(arg: A, then: (result: V$1) => R$1, opts?: {
220
- catch?: (error: unknown) => R$1;
221
- finally?: () => void;
222
- }) => R$1;
223
- type ToolAnnotation = typeof toolDef & {
224
- callback: typeof callbackTool;
225
- unwrap: typeof unwrapCallback;
226
- unsafeNoValidation: typeof toolUnsafeNoValidation;
227
- };
228
- declare const tool: ToolAnnotation;
229
- declare class RpcToolset extends RpcTarget {
230
- constructor();
231
- }
232
- //#endregion
233
- //#region src/code-mode.d.ts
234
- type SafeEvalResult = {
235
- wait: () => Promise<void>;
236
- input: ReadableStream<Uint8Array>;
237
- output: WritableStream<Uint8Array>;
238
- };
239
- type SafeEvalContext = {
240
- safeEval: (code: string) => Promise<SafeEvalResult>;
241
- sandboxContext: string;
242
- };
243
- type FlatTools = {
244
- [key: string]: Tool;
245
- } | Tool[];
246
- type RpcTools = {
247
- [key: string]: () => RpcToolset;
248
- };
249
- declare class CodeMode {
250
- private context;
251
- constructor(context: SafeEvalContext);
252
- wrap(tools: FlatTools): Promise<Tool>;
253
- wrap(tools: RpcTools | FlatTools, dts: string): Promise<Tool>;
254
- }
255
- //#endregion
256
- //#region src/code-mode-deno.d.ts
257
- /**
258
- * Creates a SafeEvalContext that uses Deno as the sandbox runtime.
259
- *
260
- * @param options - Configuration options for Deno sandbox
261
- * @param options.args - Deno custom arguments (default: [])
262
- * @param options.denoPath - Path to deno executable (default: 'deno')
263
- * @returns A SafeEvalContext configured for Deno
264
- */
265
- declare function createDenoSandbox(options?: {
266
- args?: string[];
267
- denoPath?: string;
268
- }): SafeEvalContext;
269
- //#endregion
270
- //#region src/sql/sql.d.ts
271
- type RawSql = RawBuilder<unknown>;
272
- //#endregion
273
- //#region src/sql/expression.d.ts
274
- type LiteralValue = number | string | boolean | null;
275
- type SqlExpressionIn = LiteralValue | SqlExpression;
276
- declare class SqlExpression extends RpcToolset {
277
- precedence: number;
278
- constructor(precedence?: number);
279
- compile: () => RawSql;
280
- or(expr: SqlExpression): BinaryExpression;
281
- and(expr: SqlExpression): BinaryExpression;
282
- not(): UnaryExpression;
283
- isNull(): UnaryExpression;
284
- isNotNull(): UnaryExpression;
285
- '<'(expr: SqlExpression | number | string): BinaryExpression;
286
- '<='(expr: SqlExpression | number | string): BinaryExpression;
287
- '>'(expr: SqlExpression | number | string): BinaryExpression;
288
- '>='(expr: SqlExpression | number | string): BinaryExpression;
289
- '='(expr: SqlExpressionIn): BinaryExpression;
290
- '<>'(expr: SqlExpressionIn): BinaryExpression;
291
- '!='(expr: SqlExpressionIn): BinaryExpression;
292
- 'LIKE'(expr: SqlExpression | string): BinaryExpression;
293
- 'NOT LIKE'(expr: SqlExpression | string): BinaryExpression;
294
- '+'(expr: SqlExpression | number | string): BinaryExpression;
295
- '-'(expr: SqlExpression | number | string): BinaryExpression;
296
- '*'(expr: SqlExpression | number | string): BinaryExpression;
297
- '/'(expr: SqlExpression | number | string): BinaryExpression;
298
- '%'(expr: SqlExpression | number | string): BinaryExpression;
299
- asc(): OrderByValue;
300
- desc(): OrderByValue;
301
- }
302
- declare class BinaryExpression extends SqlExpression {
303
- private readonly left;
304
- private readonly right;
305
- private readonly operator;
306
- constructor(left: SqlExpression, right: SqlExpression, operator: RawSql, precedence?: number);
307
- compile: () => kysely0.RawBuilder<unknown>;
308
- }
309
- declare class UnaryExpression extends SqlExpression {
310
- private readonly operand;
311
- private readonly operator;
312
- private readonly placement;
313
- constructor(operand: SqlExpression, operator: RawSql, placement: 'prefix' | 'postfix', precedence?: number);
314
- compile: () => kysely0.RawBuilder<unknown>;
315
- }
316
- declare class ColumnReferenceExpression extends SqlExpression {
317
- readonly alias: string;
318
- readonly column: string;
319
- constructor(alias: string, column: string);
320
- compile: () => kysely0.RawBuilder<unknown>;
321
- }
322
- declare class OrderByValue {
323
- value: SqlExpression;
324
- direction?: RawSql | undefined;
325
- constructor(value: SqlExpression, direction?: RawSql | undefined);
326
- }
327
- //#endregion
328
- //#region src/sql/builder.d.ts
329
- type RowLikeRaw = {
330
- [key: string]: SqlExpression;
331
- };
332
- type RowLikeRawIn = {
333
- [key: string]: SqlExpressionIn;
334
- };
335
- type RowLike = RowLikeRaw | TableBase;
336
- type RowLikeIn = RowLikeRawIn | RowLike;
337
- type AsRowLike<R$1 extends RowLikeIn> = R$1 extends TableBase ? R$1 : { [key in keyof R$1]: R$1[key] extends SqlExpression ? R$1[key] : SqlExpression };
338
- type NamespacedExpression<A, R$1> = (arg: A) => R$1;
339
- type FromItem<N extends string, F extends RowLike> = {
340
- alias: N;
341
- toRowLike: () => F;
342
- compile: (opts?: {
343
- isSubquery?: boolean;
344
- }) => RawSql;
345
- onExpression?: SqlExpression;
346
- };
347
- type TableNamespace = {
348
- [key: string]: RowLike;
349
- };
350
- type OrderByItem<TN extends TableNamespace> = NamespacedExpression<TN, SqlExpression | SqlExpression[] | OrderByValue | OrderByValue[] | (SqlExpression | OrderByValue)[]>;
351
- type Tables<TN extends TableNamespace> = { [k in keyof TN & string]: {
352
- fromItem: FromItem<k, TN[k]>;
353
- joinType: 'inner' | 'left' | null;
354
- on?: SqlExpression;
355
- isLateral: boolean;
356
- } };
357
- type QueryBuilderParams<N extends string, TN extends TableNamespace, S extends RowLike> = {
358
- db: Database;
359
- alias: N;
360
- tables: Tables<TN>;
361
- selectRowLike: S;
362
- whereExpression?: SqlExpression;
363
- orderByExpressions?: OrderByValue[];
364
- limit?: number;
365
- offset?: number;
366
- rawTable: TableClass<N> | undefined;
367
- };
368
- declare class QueryBuilder<N extends string, TN extends TableNamespace, S extends RowLike> extends RpcToolset implements FromItem<N, S> {
369
- #private;
370
- readonly alias: N;
371
- private selectRowLike;
372
- private tables;
373
- private whereExpression?;
374
- private orderByExpressions?;
375
- private arg;
376
- private rawTable;
377
- constructor(params: QueryBuilderParams<N, TN, S>);
378
- select<S2 extends RowLikeIn>(select: ToolCallback<(arg: TN) => S2>): QueryBuilder<N, TN, AsRowLike<S2>>;
379
- where(where: ToolCallback<(arg: TN) => SqlExpressionIn>): QueryBuilder<N, TN, S>;
380
- orderBy(orderBy: ToolCallback<OrderByItem<TN>>): QueryBuilder<N, TN, S>;
381
- limit(limit: number): QueryBuilder<N, TN, S>;
382
- offset(offset: number): QueryBuilder<N, TN, S>;
383
- join<N2 extends string, F2 extends TableClass<N2>>(fromItem: F2 | NamespacedExpression<TN, F2>, on?: NamespacedExpression<TN & { [k in N2]: InstanceType<F2> }, SqlExpressionIn>): QueryBuilder<N, TN & { [k in N2]: InstanceType<F2> }, S>;
384
- join<N2 extends string, F2 extends RowLike>(fromItem: FromItem<N2, F2> | NamespacedExpression<TN, FromItem<N2, F2>>, on?: NamespacedExpression<TN & { [k in N2]: F2 }, SqlExpressionIn>): QueryBuilder<N, TN & { [k in N2]: F2 }, S>;
385
- execute(): Promise<{ [key in keyof S]: unknown }[]>;
386
- private paramsForCopy;
387
- toRowLike: () => S;
388
- compile: (opts?: {
389
- isSubquery?: boolean;
390
- }) => kysely0.RawBuilder<unknown>;
391
- }
392
- declare class TableBase extends RpcToolset {
393
- opts?: {
394
- remapColumns?: boolean;
395
- };
396
- column: (this: InstanceType<TableClass<string>>, columnName: string) => ColumnReferenceExpression;
397
- }
398
- type TableClass<N extends string = string> = {
399
- new (opts?: {
400
- remapColumns?: boolean;
401
- }): TableBase;
402
- as: <T extends TableClass, N2 extends string>(this: T, alias: N2) => Omit<T, keyof TableClass> & TableClass<N2> & {
403
- new (): InstanceType<T>;
404
- };
405
- toRowLike: <T extends TableClass>(this: T, opts?: {
406
- remapColumns?: boolean;
407
- }) => InstanceType<T>;
408
- from: <T extends TableClass>(this: T) => QueryBuilder<N, { [k in N]: InstanceType<T> }, InstanceType<T>>;
409
- on: <T extends TableClass>(this: T, on: NamespacedExpression<InstanceType<T>, SqlExpression>) => T;
410
- compile: () => RawSql;
411
- alias: N;
412
- tableName: string;
413
- onExpression?: SqlExpression;
414
- };
415
- declare class Database {
416
- private dialect;
417
- private opts?;
418
- private kysely?;
419
- constructor(dialect: Dialect, opts?: {
420
- logQuery?: (raw: CompiledQuery) => void;
421
- } | undefined);
422
- execute(query: RawSql): Promise<unknown[]>;
423
- Table<N extends string>(name: N): TableClass<N>;
424
- }
425
- //#endregion
426
- export { CodeMode, Database, RpcToolset, type SafeEvalContext, type SafeEvalResult, type TableClass, type ToolCallback, createDenoSandbox, newWebSocketRpcSession, newWorkersRpcResponse, tool };