export declare type NormalizeState = { entities: Entities; result: any; schemas: Record; }; export declare type DenormalizeState = { entities: Entities; result: any; }; export declare type StructuralSchemaOptions = { create?: Create; merge?: Merge; }; export declare type EntitySchemaOptions = { readonly shape?: Shape; id?: (entity: any) => string; merge?: Merge; }; export declare type Entities = Record>; export declare type Normalize = (data: unknown, entities: Entities) => NormalizeState; export declare type Denormalize = (denormalizeState: DenormalizeState, path?: Array) => any; export declare type Create = (data: any) => any; export declare type Merge = (previous: any, next: any) => any; export declare type IdAttribute = (data: any) => string; export interface EntitySchemaInterface { readonly normalize: Normalize; readonly denormalize: Denormalize; shape: Shape | null; name: string; id: (item: unknown) => string; } export interface StructuralSchemaInterface { readonly normalize: Normalize; readonly denormalize: Denormalize; shape: Shape; create: Create; merge: Merge; } export interface Schema { name?: string; readonly normalize: Normalize; readonly denormalize: Denormalize; }