import type { Event, QueryContextType, SearchTypes } from '@medusajs/types'; import type { ResolvedFactoryOptions, SearchDocumentTransform } from './types'; type PathTree = Map; interface GraphInput { entity: string; fields: string[]; filters?: Record; pagination?: { take?: number; skip?: number; order?: Record; }; withDeleted?: boolean; context?: QueryContextType; } type GraphQuery = SearchTypes.SearchContainer['query']; export declare function buildPathTree(paths: string[]): PathTree; export declare function projectPaths(value: unknown, tree: PathTree): unknown; export declare function createDefaultTransform(paths: string[]): SearchDocumentTransform; export declare function createSeed(options: ResolvedFactoryOptions): SearchTypes.SearchIndexDefinition['seed']; export declare function reconcileIds(query: GraphQuery, options: ResolvedFactoryOptions, ids: string[], context: SearchTypes.SearchIngestionContext): Promise; export declare function resolveRelatedIds(query: GraphQuery, input: { entity: string; field: string; filters: Record; withDeleted?: boolean; }): Promise; export declare function runGraph(query: GraphQuery, locale: string | undefined, input: GraphInput): Promise[]>; export declare function resolveEventIds(event: Event): string[]; export declare function parseEventName(name: string): { entity: string; action: string; }; export {}; //# sourceMappingURL=graph.d.ts.map