import { SatSubsDataBegin } from '../../_generated/protocol/satellite.js'; import { DataChange, SatelliteError } from '../../util/index.js'; export declare const SUBSCRIPTION_DELIVERED = "subscription_delivered"; export declare const SUBSCRIPTION_ERROR = "subscription_error"; export type SubscriptionId = string; export type TableName = string; export type ColumnName = string; export type SubscriptionDeliveredCallback = (data: SubscriptionData) => void | Promise; export type SubscriptionErrorCallback = (error: SatelliteError, subscriptionId?: SubscriptionId) => void; export type SubscribeResponse = { subscriptionId: SubscriptionId; error?: SatelliteError; }; export type UnsubscribeResponse = Record; export type Shape = { tablename: TableName; include?: Array; where?: string; }; export type Rel = { foreignKey: Array; select: Shape; }; export type ShapeRequest = { requestId: string; definition: Shape; }; export type ShapeDefinition = { uuid: string; definition: Shape; }; export type ShapeRequestOrDefinition = ShapeRequest | ShapeDefinition; export type SubscriptionData = { subscriptionId: SubscriptionId; lsn: SatSubsDataBegin['lsn']; data: InitialDataChange[]; shapeReqToUuid: { [req: string]: string; }; }; export type InitialDataChange = Required>;