///
import { Lyra, ResolveSchema } from '@lyrasearch/lyra/dist/types';
import { Properties } from 'hast';
export type MergeStrategy = 'merge' | 'split' | 'both';
export declare const defaultHtmlSchema: {
readonly type: "string";
readonly content: "string";
readonly path: "string";
};
type Writable = {
-readonly [K in keyof T]: T[K];
};
export type DefaultSchemaElement = ResolveSchema>;
interface PopulateFromGlobOptions {
transformFn?: TransformFn;
mergeStrategy?: MergeStrategy;
}
type PopulateOptions = PopulateFromGlobOptions & {
basePath?: string;
};
type FileType = 'html' | 'md';
export declare const populateFromGlob: (db: Lyra, pattern: string, options?: PopulateFromGlobOptions) => Promise;
type LyraInstance = Lyra;
export declare const populate: (db: LyraInstance, data: Buffer | string, fileType: FileType, options?: PopulateOptions) => Promise;
export interface NodeContent {
tag: string;
raw: string;
content: string;
properties?: Properties;
}
export type TransformFn = (node: NodeContent) => NodeContent;
export {};