import type { PageAttributes } from "../site/attributes"; export type DatasourceFetcherParams< OAuthProps = unknown, Opts extends Record = Record, > = { options: Opts; oauth: OAuthProps; pageAttributes?: PageAttributes; }; export type DatasourceFetcher< T = unknown, OAuthOpts = unknown, Opts extends Record = Record, > = (params: DatasourceFetcherParams) => Promise;