import type { GraphQLSchema, SourceLocation } from 'gatsby/graphql'; import type { IDefinitionMeta as _IDefinitionMeta } from 'gatsby/dist/redux/types'; import type { SupportedLanguage } from './pluginOptions'; export declare type OverrideProps = Omit & TNewProps; export declare type Brand = T & { __TAG__: TAG; }; export declare const formatLanguage: (lang: SupportedLanguage) => string; export declare type IDefinitionMeta = OverrideProps<_IDefinitionMeta, { templateLoc: SourceLocation; printedAst: string | null; isConfigQuery: boolean; hash: number; }>; export declare function definitionIsEqual(a: IDefinitionMeta, b: IDefinitionMeta): boolean; export declare type FragmentDefinition = Brand<'FragmentDefinition', OverrideProps>; export declare type QueryDefinition = Brand<'QueryDefinition', OverrideProps>; export declare function isFragmentDefinition(def: IDefinitionMeta): def is FragmentDefinition; export declare function isQueryDefinition(def: IDefinitionMeta): def is QueryDefinition; export declare function isThirdpartyFragment(def: IDefinitionMeta): def is FragmentDefinition; export declare function isTargetDefinition(def: IDefinitionMeta): boolean; export declare const gatsbyInternalScalars: string[]; /** * Remove fields and args used only at development time from schema output. */ export declare function filterDevOnlySchema(schema: GraphQLSchema): GraphQLSchema; /** * Remove the plugin options schema. * Almost all users do not use it, but it unnecessarily increases the schema output size. */ export declare function filterPluginSchema(schema: GraphQLSchema): GraphQLSchema; export declare function stabilizeSchema(schema: GraphQLSchema): GraphQLSchema; export declare function sortDefinitions(a: IDefinitionMeta, b: IDefinitionMeta): number;