import type { IncludeExpression, Model, ModelValue, PrimaryKeyValue, PrimitiveValue, Property, PropertyValue, ReferenceValue, RelationValue } from "./types.js"; export declare const isPrimaryKey: (value: unknown) => value is PrimaryKeyValue; export declare function equalPrimaryKeys(a: PrimaryKeyValue, b: PrimaryKeyValue): boolean; export declare function equalReferences(a: PrimaryKeyValue | PrimaryKeyValue[], b: PrimaryKeyValue | PrimaryKeyValue[]): boolean; export declare function isReferenceValue(value: unknown): value is ReferenceValue; export declare function isRelationValue(value: unknown): value is RelationValue; export declare const namePattern: RegExp; export declare function getModelsFromInclude(models: Model[], modelName: string, obj: IncludeExpression): Generator; export declare function isPrimitiveValue(value: unknown): value is PrimitiveValue; export declare function validateModelValue(model: Model, value: unknown): asserts value is ModelValue; export declare function validatePropertyValue(modelName: string, property: Property, value: unknown): asserts value is PropertyValue; export declare function mergeModelValue(from: Record, into: ModelValue | null): ModelValue; export declare function updateModelValue(from: Record, into: ModelValue | null): ModelValue;