import { LogStreamType } from '../types/log-stream.types'; import { GalileoMetrics, LocalMetricConfig, Metric } from '../types/metrics.types'; /** * Represents a log stream instance with instance methods. */ export declare class LogStream { id: string; name: string; projectId: string; createdAt?: string; updatedAt?: string; createdBy?: string | null; hasUserCreatedSessions?: boolean; constructor(logStream: LogStreamType); /** * Enables metrics directly on this log stream instance. * @param metrics - List of metrics to enable on this log stream. Can include GalileoMetrics const object values, string names, Metric objects, or LocalMetricConfig objects with scorerFn for client-side scoring. * @returns A promise that resolves to the list of local metric configurations that need client-side processing. */ enableMetrics(metrics: (GalileoMetrics | Metric | LocalMetricConfig | string)[]): Promise; } /** * Class for managing log streams in the Galileo platform. * Contains all implementation logic for log stream operations. */ export declare class LogStreams { /** * Lists all log streams for a project. * @param options - The options for listing log streams. * @param options.projectId - (Optional) The ID of the project. * @param options.projectName - (Optional) The name of the project. * @returns A promise that resolves to an array of log streams. */ list(options: { projectId?: string; projectName?: string; }): Promise; /** * Retrieves a log stream by ID or name. * @param options - The options for retrieving a log stream. * @param options.id - (Optional) The ID of the log stream. * @param options.name - (Optional) The name of the log stream. * @param options.projectId - (Optional) The ID of the project. * @param options.projectName - (Optional) The name of the project. * @returns A promise that resolves to the log stream, or undefined if not found. */ get(options: { id?: string; name?: string; projectId?: string; projectName?: string; }): Promise; /** * Creates a new log stream. * @param name - The name of the log stream. * @param options - (Optional) The options for creating the log stream. * @param options.projectId - (Optional) The ID of the project. * @param options.projectName - (Optional) The name of the project. * @returns A promise that resolves to the created log stream. */ create(name: string, options?: { projectId?: string; projectName?: string; }): Promise; /** * Enables metrics for a log stream. * @param options - The options for enabling metrics. * @param options.logStreamName - (Optional) The name of the log stream. * @param options.projectName - (Optional) The name of the project. * @param options.metrics - List of metrics to enable. Can include GalileoMetrics const object values, string names, Metric objects, or LocalMetricConfig objects with scorerFn for client-side scoring. * @returns A promise that resolves to the list of local metric configurations that need client-side processing. */ enableMetrics(options: { logStreamName?: string; projectName?: string; metrics: (GalileoMetrics | Metric | LocalMetricConfig | string)[]; }): Promise; }