import { Ordering } from '../Sort'; import { FixMe } from '../types'; interface Schema { name: string; get(typeName: string): SchemaType | undefined; getTypeNames(): string[]; } interface SchemaField { name: string; type: SchemaType; } interface PreviewFields { media?: string; } interface PreviewPreparer { (selection: Record): PreviewFields; } export interface SchemaType { name: string; title?: string; icon?: FixMe; type?: SchemaType; to?: SchemaField[]; fields?: SchemaField[]; orderings?: Ordering[]; initialValue?: FixMe | { [key: string]: unknown; }; preview?: { select?: PreviewFields; prepare?: PreviewPreparer; }; } declare const getDefaultSchema: () => Schema; export { Schema, getDefaultSchema }; //# sourceMappingURL=Schema.d.ts.map