import CleverCloudSse from './clever-cloud-sse.js'; import type { ResourceLog, ResourceLogsStreamParams } from './resource-logs.types.js'; /** * Clever Cloud Resource's logs stream */ export declare class ResourceLogStream extends CleverCloudSse { private _ownerId; private _addonId; private _options; private _logsCount; constructor({ apiHost, tokens, ownerId, addonId, retryConfiguration, connectionTimeout, ...options }: ResourceLogsStreamParams); /** * compute full URL with query params */ getUrl(): URL; /** * compute the number of events to retrieve, based on elements already received */ private _computedLimit; /** * Transform the log event data to a resource log object. */ transform(event: string, data: any): any; /** * shortcut for .on('ACCESS_LOG', (event) => ...) * * @param fn which handle logs */ onLog(fn: (log: ResourceLog) => void): this; } //# sourceMappingURL=resource-logs.d.ts.map