import { type ContextConfig, type FileLoader, type GraphQLQueryConfig, type RouteConfig } from './config.ts'; import type { Data, GraphQLConnector, Json, Stats } from './types.ts'; export type ResolvedQueryConfig = { source: string; } & GraphQLQueryConfig; export type ResolveContextParams = { contextConfig: ContextConfig; srcPath: string; fileLoader: FileLoader; connector: GraphQLConnector; route?: RouteConfig; stats?: Stats; }; type HandlerParams = { srcPath: string; filePath: string; variables?: Record; fileLoader: FileLoader; connector: GraphQLConnector; route?: RouteConfig; stats?: Stats; }; export declare function getType(path: string): string | null; export type FileHandlerParams = Pick; export declare function handleJSON({ srcPath, filePath, fileLoader }: FileHandlerParams): Promise; export declare function handleYaml({ srcPath, filePath, fileLoader }: FileHandlerParams): Promise; export declare function handleGraphQL({ srcPath, filePath, variables, connector, fileLoader, route, stats }: HandlerParams): Promise; export declare function handleContextString(params: ResolveContextParams): Promise; export declare function resolveGraphQLConfig(config: ContextConfig, { fileLoader, srcPath }: { fileLoader: FileLoader; srcPath: string; }): Promise; export default function resolveContext(contextParams: ResolveContextParams): Promise; export {};