import { Collection, CollectionTemplateable, TinaSchema, normalizePath } from '@tinacms/schema-tools'; import * as yup from 'yup'; import { ContentFormat, ContentFrontmatterFormat } from '@tinacms/schema-tools'; import { Bridge } from './bridge'; export { normalizePath }; export declare const stringifyFile: (content: object, format: ContentFormat | string, // FIXME /** For non-polymorphic documents we don't need the template key */ keepTemplateKey: boolean, markdownParseConfig?: { frontmatterFormat?: ContentFrontmatterFormat; frontmatterDelimiters?: [string, string] | string; yamlMaxLineWidth?: number; }) => string; export declare const parseFile: (content: string, format: ContentFormat | string, // FIXME yupSchema: (args: typeof yup) => yup.ObjectSchema, markdownParseConfig?: { frontmatterFormat?: ContentFrontmatterFormat; lineWidth?: number; frontmatterDelimiters?: [string, string] | string; }) => T; export declare const scanAllContent: (tinaSchema: TinaSchema, bridge: Bridge, callback: (collection: Collection, contentPaths: string[]) => Promise) => Promise; export declare const scanContentByPaths: (tinaSchema: TinaSchema, documentPaths: string[], callback: (collection: Collection | undefined, documentPaths: string[]) => Promise) => Promise; export declare const partitionPathsByCollection: (tinaSchema: TinaSchema, documentPaths: string[]) => Promise<{ pathsByCollection: Record; nonCollectionPaths: string[]; collections: Record>; }>; /** TODO help needed with name of this function **/ export declare const transformDocument: (filepath: string, contentObject: any, tinaSchema: TinaSchema) => T; export declare function hasOwnProperty(obj: X, prop: Y): obj is X & Record; export declare const getTemplateForFile: (templateInfo: CollectionTemplateable, data: { [key: string]: unknown; }) => import("@tinacms/schema-tools").Template; /** TODO help needed with name of this function **/ export declare const loadAndParseWithAliases: (bridge: Bridge, filepath: string, collection?: Collection, templateInfo?: CollectionTemplateable) => Promise;