import * as E from 'fp-ts/lib/Either'; import { Model } from 'functional-google-cloud/lib/Firestore'; import { DocumentType } from 'functional-types/lib/FileType'; import { FileReferences } from 'functional-types/lib/Folder'; import { Schema } from 'functional-types/lib/Schema'; import * as Serialized from 'functional-types/lib/Serialize/Schema'; export declare type SchemaInstance = Schema | Serialized.Schema; export interface SchemaReference extends FileReferences { schema: T; } export declare type SchemaReferencesByFileType = Record[]>; export declare const isSerializedSchemaReference: (a: unknown) => a is SchemaReference; export declare const isSchemaReference: (a: unknown) => a is SchemaReference; export declare const toSchemaReference: ({ schema: serializedSchema, ...reference }: SchemaReference) => E.Either; export declare const fromSchemaReference: ({ schema, ...reference }: SchemaReference) => SchemaReference; export declare const toSchemaReferencesByFileType: (referencesByFileTypes: SchemaReferencesByFileType) => E.Either; export declare const fromSchemaReferenceByFileType: (referencesByFileTypes: SchemaReferencesByFileType) => SchemaReferencesByFileType; export declare const toModel: (schema: Schema) => Model; export declare const fromModel: (model: Model) => E.Either;