export interface ApolloDataSourceConfig { context: TContext; cache?: ApolloKeyValueCache; } export interface ApolloKeyValueCacheSetOptions { /** * Specified in **seconds**, the time-to-live (TTL) value limits the lifespan * of the data being stored in the cache. */ ttl?: number | null; } export interface ApolloKeyValueCache { get(key: string): Promise; set(key: string, value: V, options?: ApolloKeyValueCacheSetOptions): Promise; delete(key: string): Promise; } export declare abstract class ApolloDataSource { initialize?(config: ApolloDataSourceConfig): void | Promise; }