import { Table } from './database'; import { Document } from 'sqlex'; export interface RecordConfig { [key: string]: string | string[]; } export declare function parseRelatedOption(spec: string): { name: string; key: string; value: string; }; export declare function loadTable(table: Table, data: Document | Document[], config: RecordConfig, defaults?: Document): Promise; export declare function recordConfigToDocument(table: Table, config: RecordConfig): Document; export declare function mapDocument(doc: Document, config: RecordConfig): Document[];