import { State, PK, Row } from './types'; import { Info } from './types'; interface ResponseGetInfo { Method: 'GetInfo'; Context: { Source: keyof State['Source']; }; Result: Info; } interface ResponseSubscribe { ID: string; Method: 'Subscribe'; Context: { Target: keyof State['Source']; }; Result: 'Success'; } interface ResponseSelect { Method: 'Select'; Context: { Source: keyof State['Source']; }; Result: Row[]; } interface ResponseRequest { Method: 'Insert' | 'Delete' | 'Update'; ID: string; Context: { Source: keyof State['Source']; }; Result: { Success: true; }; Error: null; } interface Notificate { Method: 'insert' | 'delete' | 'update'; Context: { Source: string; Target: keyof State['Source']; Notification: true; }; Row: Row; PK?: PK; } export declare type Response = ResponseGetInfo | ResponseSubscribe | ResponseRequest | ResponseSelect | Notificate; export {};