export type DualGenerator = Generator; export declare function driveSync(generator: DualGenerator): TReturn; export declare function driveAsync(generator: DualGenerator): Promise; /** * Yield a value (or promise, or nested promise) and recover it with its fully * unwrapped type. Use with `yield*` so the call site reads as * `const x = yield* awaited(client.all(...))` with no per-yield cast. In sync * mode the value passes through unchanged; in async mode the driver awaits it * before resuming. `Awaited` collapses any level of `Promise<>` so this is * safe to use with `client.transaction(...)`'s `T | Promise` overload union. */ export declare function awaited(value: T): DualGenerator>;