import type Serializer from './serializer.js'; interface ToJSONOptions { fields?: Set; baseUrl?: string; } interface SerializeOptions { update?: boolean; serialize?: boolean; transform?: boolean; [key: string]: unknown; } interface UnloadOptions { [key: string]: unknown; } interface RelationshipLinks { self: string; related: string; } interface RelationshipEntry { data: { type: string; id: unknown; } | { type: string; id: unknown; }[] | null; links?: RelationshipLinks; } interface JSONAPIResult { attributes: { [key: string]: unknown; }; relationships: { [key: string]: RelationshipEntry; }; id: unknown; type: string; links?: { self: string; }; } export default class Record { /** @private */ __data: { [key: string]: unknown; }; /** @private */ __relationships: { [key: string]: unknown; }; /** @private */ __serialized: boolean; /** @private */ __model: { __name: string; [key: string]: unknown; }; /** @private */ __serializer: Serializer; [key: string]: unknown; constructor(model: { __name: string; [key: string]: unknown; }, serializer: Serializer); serialize(rawData?: unknown, options?: SerializeOptions): { [key: string]: unknown; }; format(): { [key: string]: unknown; }; toJSON(options?: ToJSONOptions): JSONAPIResult; unload(options?: UnloadOptions): void; clean(): void; } export {};