1 | import type { Temporal } from 'temporal-spec';
|
2 | import type { Awaitable } from "./utils/common-types.js";
|
3 | import type { Context } from "./index.js";
|
4 | import { CacheControl } from '@tusbar/cache-control';
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare type CacheOptions = {
|
13 | [K in keyof CacheControl]: CacheControl[K] extends (number | null | undefined) ? number | Temporal.Duration | null : CacheControl[K];
|
14 | };
|
15 | export declare const caching: (options?: CacheOptions) => <X extends Context>(ax: Awaitable<X>) => Promise<X>;
|