import DataLoader from 'dataloader'; import type { RevealPaginatedResult, TypedFallbackLocale } from './index.js'; import type { PopulateType, RevealFindOptions, RevealRequest, SelectType, TypeWithID } from './types/index.js'; interface ExtendedDataLoader extends DataLoader { find: (args: RevealFindOptions & { collection: string; }) => Promise; } export declare const getDataLoader: (req: RevealRequest) => ExtendedDataLoader; type CreateCacheKeyArgs = { collectionSlug: string; currentDepth: number; depth: number; docID: number | string; draft: boolean; fallbackLocale: TypedFallbackLocale; locale: string | string[]; overrideAccess: boolean; populate?: PopulateType; select?: SelectType; showHiddenFields: boolean; transactionID: number | Promise | string | undefined; }; export declare const createDataloaderCacheKey: ({ collectionSlug, currentDepth, depth, docID, draft, fallbackLocale, locale, overrideAccess, populate, select, showHiddenFields, transactionID, }: CreateCacheKeyArgs) => string; export {}; //# sourceMappingURL=dataloader.d.ts.map