/** * Application monitoring — error events, stack traces, source-map uploads. * * GET /monitoring/projects/:id/errors?env=&limit=&since= * GET /monitoring/errors/:errorId/stacktrace?projectId= * GET /monitoring/projects/:id/source-maps?service= * POST /monitoring/projects/:id/source-maps * * Stack traces are server-deminified if a matching source-map has been * uploaded for the release — the `resolved` flag indicates whether * `frames` reflect original source positions or raw minified offsets. */ import type { Client } from './client.js'; export interface MonitoringError { readonly id: string; readonly createdAt: string; readonly level: string | null; readonly message: string; readonly serviceName: string | null; readonly stackTraceId: string | null; } export interface ListErrorsOptions { readonly env?: string; readonly limit?: number; readonly since?: string; } export declare const listErrors: (client: Client, projectId: string, options?: ListErrorsOptions) => Promise<{ errors: readonly MonitoringError[]; }>; export interface StackFrame { readonly function: string | null; readonly file: string | null; readonly line: number | null; readonly column: number | null; } export interface StackTrace { readonly errorId: string; readonly resolved: boolean; readonly frames: readonly StackFrame[]; readonly raw: string | null; } export declare const getStackTrace: (client: Client, projectId: string, errorId: string) => Promise; export interface SourceMap { readonly id: string; readonly release: string; readonly filename: string; readonly uploadedAt: string; readonly sizeBytes: number; readonly service: string | null; } export declare const listSourceMaps: (client: Client, projectId: string, options?: { service?: string; }) => Promise<{ maps: readonly SourceMap[]; }>; export interface UploadSourceMapInput { readonly release: string; readonly filename: string; readonly content: string; readonly service?: string; } export declare const uploadSourceMap: (client: Client, projectId: string, input: UploadSourceMapInput) => Promise<{ id: string; }>; //# sourceMappingURL=monitoring.d.ts.map