import { type DocumentNode } from 'graphql'; import { type Location, type SourceLocation } from 'graphql/language'; import type { GraphQLConnector, GraphQLResult } from '../types.ts'; export declare function formatWarning(name: string, loc?: Location, queryStr?: string, source?: string): Warning; export type MapGraphQLResponse = (res: GraphQLResult) => GraphQLResult; export declare function getMapResponse(props: string[]): MapGraphQLResponse; export type Warning = { message: string; location: SourceLocation; source: string; }; export type MigrateListQueriesResult = { ast: DocumentNode; warnings: Warning[]; migrated: boolean; mapResponse: MapGraphQLResponse | null; }; export declare function migrateListQueries(ast: DocumentNode, queryStr?: string, source?: string): MigrateListQueriesResult; export declare function connectorWithMigrations(connector: GraphQLConnector): GraphQLConnector;