import { Stream } from 'stream'; import { EventEmitter } from 'events'; import { DODPCaching } from './DODPCaching'; import * as DODP from './DODPTypes'; import * as DAISY from '@nota/daisyparserjs'; export declare class DODPService implements DODP.DODPServiceAPI { private _client; private _caching; private username; private password; private _ready; private cachedBooks; private operations; private events; constructor(client: DODP.DODPClientAPI, username: string, password: string, caching?: DODPCaching); ready: Promise; client: DODP.DODPClientAPI; caching: DODPCaching; withLogOn(worker: () => Promise, onRefresh?: () => Promise): Promise; logOn(): Promise; logOff(): Promise; private refreshSession(); private handleError(err); issueContent(contentID: string): Promise; returnContent(contentID: string): Promise; loadBookStructure(contentID: string): Promise; getContentResources(contentID: string): Promise; getResourceMetadata(uri: string): Promise; getResourceStream(url: string, start?: number, end?: number): Stream; loadResource(contentID: string, localUri: string, uri: string): Promise; getContentMetadata(contentID: string): Promise; getContentList(listId?: string, firstItem?: number, lastItem?: number): Promise; on(eventName: string, cb: Function): EventEmitter; private emit(eventName, ...args); }