import { DbSchema } from '@based/schema'; import { DbServer } from './index.js'; export declare const setSchemaOnServer: (server: DbServer, schema: DbSchema) => void; export declare const writeSchemaFile: (server: DbServer, schema: DbSchema) => Promise; /** * Set schema used in native code. * This function should be only called when a new schema is set to an empty DB * instance. If a `common.sdb` file is loaded then calling this function isn't * necessary because `common.sdb` already contains the required schema. */ export declare const setNativeSchema: (server: DbServer, schema: DbSchema) => void;