import { OperatorFunction } from '../../interfaces.js'; /** * Creates a buffer with a view over the source sequence, causing each iterator to obtain access to the * remainder of the sequence from the current index in the buffer. * * @template TSource Source sequence element type. * @returns {OperatorFunction} Buffer enabling each iterator to retrieve elements from * the shared source sequence, starting from the index at the point of obtaining the enumerator. */ export declare function publish(): OperatorFunction; /** * Buffer enabling each iterator to retrieve elements from the shared source sequence, starting from the * index at the point of obtaining the iterator. * * @template TSource Source sequence element type. * @template TResult Result sequence element type. * @param {(value: Iterable) => Iterable} [selector] Selector function with published * access to the source sequence for each iterator. * @returns {OperatorFunction} Sequence resulting from applying the selector function to the * published view over the source sequence. */ export declare function publish(selector?: (value: Iterable) => Iterable): OperatorFunction;