1 | import { GraphQLFieldConfig } from 'gatsby/graphql';
|
2 | import { GatsbyContext, GatsbyNode, GatsbyOnNodeTypeContext, GatsbyResolversCreator, GatsbyNodeIdCreator } from './types/gatsby';
|
3 | export interface PluginConfig {
|
4 | projectId: string;
|
5 | dataset: string;
|
6 | token?: string;
|
7 | version?: string;
|
8 | graphqlTag: string;
|
9 | overlayDrafts?: boolean;
|
10 | watchMode?: boolean;
|
11 | }
|
12 | export declare const onPreBootstrap: (context: GatsbyContext, pluginConfig: PluginConfig) => Promise<void>;
|
13 | export declare const createResolvers: (context: {
|
14 | createResolvers: GatsbyResolversCreator;
|
15 | createNodeId: GatsbyNodeIdCreator;
|
16 | getNode: (id: string) => GatsbyNode | undefined;
|
17 | }, pluginConfig: PluginConfig) => void;
|
18 | export declare const createSchemaCustomization: ({ actions }: GatsbyContext, pluginConfig: PluginConfig) => void;
|
19 | export declare const sourceNodes: (context: GatsbyContext, pluginConfig: PluginConfig) => Promise<void>;
|
20 | export declare const onPreExtractQueries: (context: GatsbyContext, pluginConfig: PluginConfig) => Promise<void>;
|
21 | export declare const setFieldsOnGraphQLNodeType: (context: GatsbyContext & GatsbyOnNodeTypeContext, pluginConfig: PluginConfig) => Promise<{
|
22 | [key: string]: GraphQLFieldConfig<any, any, {
|
23 | [argName: string]: any;
|
24 | }>;
|
25 | }>;
|