/** * Do notation for Generator * it allows you to chain multiple Generator computations together * and not worry about the None case * * @example * ```ts * pipe( * Do, * bind('a', () => of(1)), * bind('b', ({ a }) => of(a + 1)), * map(({ a, b }) => a + b), * ) * ``` */ export declare const Do: Generator<{}, any, unknown>; /** * bind an Generator to a name * @param name name of the Generator * @param f function that returns an Generator * @returns Generator with the name binded * * @example * ```ts * pipe( * Do, * bind('a', () => of(1)), * bind('b', ({ a }) => of(a + 1)), * map(({ a, b }) => a + b), * ) * ``` */ export declare const bind: (args_0: A1 extends string ? Exclude : never, args_1: (args_0: A2) => Generator) => (args_0: Generator) => Generator; declare const $let: (args_0: A1 extends string ? Exclude : never, args_1: (args_0: A2) => A3) => (args_0: Generator) => Generator; export { $let as let };