import * as DataLoader from "dataloader"; import { GraphQLFieldConfigMap, GraphQLScalarType } from "graphql"; import { ProductFile, ProductTableFile, ProductTableFileColumn } from "../../file-types"; import { TableRow, TableRowWithProductFileName } from "../schema-types"; import { Context } from "../context"; import { ModuleFieldResolverParent } from "../module-plugin"; export declare const builtinParentIdColumnSafeName: string; export declare const builtinIdColumnSafeName: string; export declare function resolveTableRows(module: string, tableName: string, productFileName: string, loaders: { readonly productFiles: DataLoader; readonly tableFiles: DataLoader; }, includeProductFileName: boolean, parent: { readonly id: string; readonly name: string | undefined; readonly value: string | undefined; } | undefined, grandParent: { readonly name: string | undefined; } | undefined, language: string | undefined): Promise | ReadonlyArray>; export declare function buildTableRowTypeFields(columns: ReadonlyArray): GraphQLFieldConfigMap; export declare function columnTypeToGraphQLType(c: ProductTableFileColumn): GraphQLScalarType; export declare const parentRowResolver: (moduleName: string, tableName: string) => (parent: ModuleFieldResolverParent, _args: {}, ctx: Context) => Promise; export declare const childRowResolver: (moduleName: string, tableName: string, includeProductFileName: boolean) => (parent: TableRowWithProductFileName, _args: {}, ctx: Context) => Promise; //# sourceMappingURL=shared-functions.d.ts.map