1 | export type GatsbyNodePluginArgs = {
|
2 | files: GatsbyFile[];
|
3 | markdownNode: MarkdownNode;
|
4 | markdownAST: any;
|
5 | reporter: {
|
6 | info: (msg: string, error?: Error) => void;
|
7 | };
|
8 | };
|
9 | export type GatsbyFile = {
|
10 | absolutePath: string;
|
11 | };
|
12 | export type PluginOptions = {
|
13 | staticFolderName: string;
|
14 | include: string[];
|
15 | exclude: string[];
|
16 | };
|
17 | export type FrontMatterOptions = {
|
18 | staticFolderName: string;
|
19 | include: string[];
|
20 | exclude: string[];
|
21 | };
|
22 | export type MarkdownNode = {
|
23 | id: string;
|
24 | parent: string;
|
25 | url: string;
|
26 | frontmatter?: object;
|
27 | internal: {
|
28 | type: string;
|
29 | };
|
30 | fileAbsolutePath: string;
|
31 | };
|
32 | export type Node = {
|
33 | dir: string;
|
34 | };
|
35 | export type HtmlNode = {
|
36 | value: string;
|
37 | } & MarkdownNode;
|
38 | export declare const defaultPluginOptions: {
|
39 | staticFolderName: string;
|
40 | include: never[];
|
41 | exclude: never[];
|
42 | };
|
43 | export declare const findMatchingFile: (src: string, files: GatsbyFile[], options: PluginOptions) => GatsbyFile;
|
44 | declare const _default: ({ files, markdownNode, markdownAST }: GatsbyNodePluginArgs, pluginOptions: PluginOptions) => Promise<void>;
|
45 | export default _default;
|