import { OrderByState } from "../../interfaces/orderBy"; import { FilterState } from "../../types"; import { TraceRecordReadType } from "../repositories/definitions"; import Decimal from "decimal.js"; import { ScoreAggregate } from "../../features/scores"; import { TracingSearchType } from "../../interfaces/search"; import { ObservationLevelType, TraceDomain } from "../../domain"; import { ClickHouseClientConfigOptions } from "@clickhouse/client"; export type TracesTableReturnType = Pick; export type TracesTableUiReturnType = Pick; export type TracesMetricsUiReturnType = { id: string; projectId: string; promptTokens: bigint; completionTokens: bigint; totalTokens: bigint; latency: number | null; level: ObservationLevelType; observationCount: bigint; calculatedTotalCost: Decimal | null; calculatedInputCost: Decimal | null; calculatedOutputCost: Decimal | null; scores: ScoreAggregate; usageDetails: Record; costDetails: Record; errorCount: bigint; warningCount: bigint; defaultCount: bigint; debugCount: bigint; }; export declare const convertToUiTableRows: (row: TracesTableReturnType) => TracesTableUiReturnType; export declare const convertToUITableMetrics: (row: TracesTableMetricsClickhouseReturnType) => Omit; export type TracesTableMetricsClickhouseReturnType = { id: string; project_id: string; timestamp: Date; level: ObservationLevelType; observation_count: number | null; latency: string | null; usage_details: Record; cost_details: Record; scores_avg: Array<{ name: string; avg_value: number; }>; error_count: number | null; warning_count: number | null; default_count: number | null; debug_count: number | null; }; export type FetchTracesTableProps = { select: "count" | "rows" | "metrics" | "identifiers"; projectId: string; filter: FilterState; searchQuery?: string; searchType?: TracingSearchType[]; orderBy?: OrderByState; limit?: number; page?: number; clickhouseConfigs?: ClickHouseClientConfigOptions | undefined; tags?: Record; }; export declare const getTracesTableCount: (props: { projectId: string; filter: FilterState; searchQuery?: string; searchType: TracingSearchType[]; orderBy?: OrderByState; limit?: number; page?: number; }) => Promise; export declare const getTracesTableMetrics: (props: { projectId: string; filter: FilterState; searchQuery?: string; orderBy?: OrderByState; limit?: number; page?: number; clickhouseConfigs?: ClickHouseClientConfigOptions | undefined; }) => Promise>>; export declare const getTracesTable: (p: { projectId: string; filter: FilterState; searchQuery?: string; searchType?: TracingSearchType[]; orderBy?: OrderByState; limit?: number; page?: number; clickhouseConfigs?: ClickHouseClientConfigOptions | undefined; }) => Promise; export declare const getTraceIdentifiers: (props: { projectId: string; filter: FilterState; searchQuery?: string; searchType?: TracingSearchType[]; orderBy?: OrderByState; limit?: number; page?: number; clickhouseConfigs?: ClickHouseClientConfigOptions | undefined; }) => Promise<{ id: string; projectId: string; timestamp: Date; }[]>; //# sourceMappingURL=traces-ui-table-service.d.ts.map