import { Observable } from '../Observable'; /** * Buffers values from the source by opening the buffer via signals from an * Observable provided to `openings`, and closing and sending the buffers when * an Observable returned by the `closingSelector` emits. * * * * @param {Observable} openings An observable of notifications to start new * buffers. * @param {Function} closingSelector a function that takes the value emitted by * the `openings` observable and returns an Observable, which, when it emits, * signals that the associated buffer should be emitted and cleared. * @returns {Observable} an observable of arrays of buffered values. */ export declare function bufferToggle(openings: Observable, closingSelector: (value: O) => Observable): Observable; export interface BufferToggleSignature { (openings: Observable, closingSelector: (value: O) => Observable): Observable; }