/// <reference types="node" />
import { Consumer, IHeaders } from 'kafkajs/types';
import { Transform } from 'stream';
import Long from 'long';
export interface Message {
    topic: string;
    partition: number;
    key?: Buffer | string | null;
    value: Buffer | string | null;
    headers?: IHeaders;
    highWaterOffset: string;
    offset: string;
    timestamp?: string;
}
export interface TopicPartitionStream extends Transform {
    topic: string;
    partition: number;
    seek(offset: string | Long): void;
}
declare class TaskStreams {
    private consumer;
    private streams;
    private consumerEvents;
    constructor(consumer: Consumer);
    stream({ topic, partition }: {
        topic: string;
        partition: number;
    }): TopicPartitionStream;
    start(): Promise<void>;
}
export default function create(consumer: any): TaskStreams;
export {};
