import Criteria from './Criteria'; import Entity from './_internals/Entity'; import EntityCollection from './_internals/EntityCollection'; import repository from './repository'; /** * Methods used by extension developers to get and update data */ export declare const subscribe: (id: string, callback: (data: { id: string; data: unknown; }) => void | Promise) => unknown; export declare const get: (messageOptions: import("../channel").MessageDataType<"datasetGet">) => Promise; export declare const update: (messageOptions: import("../channel").MessageDataType<"datasetUpdate">) => Promise; /** * Internal methods used by the administration */ export declare const register: (messageOptions: import("../channel").MessageDataType<"datasetRegistration">) => Promise<{ id: string; data: unknown; }>; export declare const updateSubscriber: (id: string, callback: (data: { id: string; data: unknown; }) => void | Promise) => unknown; export declare const handleGet: (method: (data: import("../channel").MessageDataType<"datasetGet">) => unknown) => () => void; export type datasetRegistration = { responseType: { id: string; data: unknown; }; id: string; data: unknown; }; export type datasetSubscribe = { responseType: unknown; id: string; data: unknown; }; export type datasetUpdate = { responseType: unknown; id: string; data: unknown; }; export type datasetGet = { responseType: unknown; id: string; data?: unknown; }; declare const Classes: { Criteria: typeof Criteria; Entity: typeof Entity; EntityCollection: typeof EntityCollection; }; export { repository, Classes, };