import { StreamModel } from './model.stream'; import { DataMeta, IData, JSONObject } from '../util/types'; export declare class Data> extends StreamModel implements IData { #private; static endpoint: string; static attributes: string[]; data_meta: DataMeta; data: T; _secret_background: T; constructor(id?: string, type?: string); url(): string; getAttributes(): string[]; set(name: K, item: T[K], secret?: boolean): void; get(name: K, secret?: boolean): T[K] | undefined; remove(name: K, secret?: boolean): void; keys(): K[]; values(): T[K][]; entries(): [K, T[K]][]; static fetchById = Record>(id: string): Promise | undefined>; /** * Finds instances of the Data model with a specific ID. * @param id - The ID to search for. * @returns A Promise that resolves to an array of Data instances matching the provided ID. */ static findByDataId = Record>(id: string): Promise[]>; parse(json: JSONObject): boolean; toJSON(): JSONObject; }