import { CognacContext } from './context'; export interface CognacSourceInterface { start: () => Promise | void; subscribe: (fn: (data: T) => Promise) => void; stop?: () => Promise | void; onContextCreate?: (context: CognacContext) => Promise | void; onDone?: (context: CognacContext) => Promise | void; }