import { Reader } from '../reader'; import { Writer } from '../writer'; export interface Options { sync?: boolean; chunkSize?: number | (() => number); } export declare class StringWriter extends Writer { buf: string; constructor(options: Options); toString(): string; get result(): string; } export declare function reader(text: string, options?: Options | number): Reader; export declare function writer(options?: Options): StringWriter; export declare function factory(url: string): { reader: () => any; writer: () => any; };