import { EventDecoder, StreamEvent } from './sse-protocol'; /** * Server-sent event. */ export declare class SSEDecoder implements EventDecoder { private event?; private data; private chunks; constructor(); protected buildServerSentEvent(): StreamEvent; decode(line: string): StreamEvent | undefined; /** * Partitions a string into three parts based on a delimiter. * @param str The string to partition. * @param delimiter The delimiter to partition the string by. * @returns A tuple containing the three parts of the partitioned string. * The first part is the string before the delimiter, the second part is the delimiter itself, * and the third part is the string after the delimiter. * If the delimiter is not found in the string, the first part is the entire string, the second part is an empty string, and the third part is an empty string. * @example * partition('hello,world', ',') // ['hello', ',', 'world'] * partition('hello,world', '.') // ['hello,world', '', ''] * partition('hello,world', 'l') // ['he', 'l', 'lo,world'] */ protected partition(str: string, delimiter: string): [string, string, string]; } //# sourceMappingURL=sse-decoder.d.ts.map