import { Observable } from 'rxjs'; import { ProfilingListResponse, ProfilingDetailResponse, ProfilingStatsResponse, ProfilingFilters } from '../models/api-response.model'; import * as i0 from "@angular/core"; /** * Service for managing profiling logs and statistics. * * @example * ```typescript * export class ProfilingComponent { * private profilingService = inject(ProfilingService); * * ngOnInit() { * this.profilingService.getProfilings().subscribe(response => { * console.log('Profiling data:', response); * }); * } * } * ``` */ export declare class ProfilingService { private readonly http; private readonly config; /** * Get the profiling API URL */ private get profilingApiUrl(); /** * Get all profiling records with optional filters * @param filters - Optional filters * @param limit - Number of records to return (default: 100) * @param offset - Offset for pagination (default: 0) * @returns Observable of ProfilingListResponse */ getProfilings(filters?: ProfilingFilters, limit?: number, offset?: number): Observable; /** * Get profiling detail by ID * @param id - Profiling record ID * @returns Observable of ProfilingDetailResponse */ getProfilingById(id: number): Observable; /** * Get profiling detail by request ID * @param requestId - Request ID * @returns Observable of ProfilingDetailResponse */ getProfilingByRequestId(requestId: string): Observable; /** * Get profiling statistics * @returns Observable of ProfilingStatsResponse */ getStats(): Observable; /** * Format duration in human-readable format * @param ms - Duration in milliseconds * @returns Formatted duration string */ formatDuration(ms: number): string; /** * Format date for display * @param dateStr - Date string * @returns Formatted date string */ formatDate(dateStr: string | null): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }