import * as graphql from "graphql"; import type { CollectionName, Collections, Input, Resource } from "../collections"; import { IdObject } from "../id"; import type { Definitions, Process } from "./types"; export interface ResourceProcessorsOptions { definitions: Definitions; } export interface ResourceProcessors { load: >(collectionName: N, inputs: (Input | undefined)[]) => Process | undefined)[]>; get: >(collectionName: N, id: string, document: graphql.DocumentNode) => Process | undefined>; find: >(collectionName: N, ids: (string | undefined)[], document: graphql.DocumentNode) => Process | undefined)[]>; all: >(collectionName: N, document: graphql.DocumentNode) => Process[]>; } export declare const resourceProcessorsForDefinitions: (definitions: Definitions) => ResourceProcessors;