import { ObservableNotification } from 'rxjs'; import { SubscriptionLog } from '../utils/coreInternalImport'; /** * Expanded structured type of `ObservableNotification` since we can't narrow down * TestMessage to specific notification types, instead provide wide support */ interface NotificationType { kind: 'N' | 'E' | 'C'; value?: T; error?: any; } /** * Represents interface for single metadata value emitted by HotObservable or ColdObservable * */ interface TestMessage { frame: number; notification: NotificationType; } /** * Represents single metadata value emitted by HotObservable or ColdObservable * */ declare class TestMessageValue implements TestMessage { readonly frame: number; readonly notification: ObservableNotification; constructor(frame: number, notification: ObservableNotification); } /** * Utility function to generate TestMessage represents value for Observer::next() * @param frame virtual frame time when value will be emitted * @param value */ declare const next: (frame: number, value: T) => TestMessage; /** * Utility function to generate TestMessage represents error for Observer::error() * @param frame virtual frame time when value will be emitted * @param value */ declare const error: (frame: number, error?: any) => TestMessage; /** * Utility function to generate TestMessage represents completion for Observer::complete() * @param frame virtual frame time when value will be emitted */ declare const complete: (frame: number) => TestMessage; declare const subscribe: (subscribedFrame?: number, unsubscribedFrame?: number) => SubscriptionLog; export { TestMessage, TestMessageValue, next, error, complete, subscribe }; //# sourceMappingURL=TestMessage.d.ts.map