import { Entry } from './contentful/types'; import { ContentfulDataSource } from './dataSource'; export interface DataSourceWithInclude extends ContentfulDataSource { /** Given an entry, resolves it down to the specified depth */ resolveEntry(entry: T, depth: number): Promise; } /** * Wraps a data source to automatically resolve linked entries and assets, * replacing links recursively down the tree by fetching the linked entries * by ID. */ export declare function withInclude(dataSource: TDataSource): TDataSource; /** * Enhances a DataSource to automatically resolve linked entries and assets, * replacing links recursively down the tree by fetching the linked entries * by ID. */ export declare function addInclude(dataSource: TDataSource): asserts dataSource is TDataSource & DataSourceWithInclude;