import { LogRecordData, TraceData } from '@genkit-ai/tools-common';
interface OtlpValue {
    stringValue?: string;
    intValue?: number;
    boolValue?: boolean;
    arrayValue?: {
        values: OtlpValue[];
    };
}
interface OtlpAttribute {
    key: string;
    value: OtlpValue;
}
interface OtlpSpan {
    traceId: string;
    spanId: string;
    parentSpanId?: string;
    name: string;
    kind: number;
    startTimeUnixNano: string;
    endTimeUnixNano: string;
    attributes: OtlpAttribute[];
    droppedAttributesCount: number;
    events: any[];
    droppedEventsCount: number;
    status?: {
        code: number;
        message?: string;
    };
    links: any[];
    droppedLinksCount: number;
}
interface OtlpScopeSpan {
    scope: {
        name: string;
        version: string;
    };
    spans: OtlpSpan[];
}
interface OtlpResourceSpan {
    resource: {
        attributes: OtlpAttribute[];
        droppedAttributesCount: number;
    };
    scopeSpans: OtlpScopeSpan[];
}
interface OtlpLogRecord {
    timeUnixNano: string;
    severityNumber?: number;
    severityText?: string;
    body?: OtlpValue;
    attributes?: OtlpAttribute[];
    traceId?: string;
    spanId?: string;
}
interface OtlpScopeLog {
    scope: {
        name: string;
        version: string;
    };
    logRecords: OtlpLogRecord[];
}
interface OtlpResourceLog {
    resource: {
        attributes: OtlpAttribute[];
        droppedAttributesCount: number;
    };
    scopeLogs: OtlpScopeLog[];
}
export interface OtlpPayload {
    resourceSpans?: OtlpResourceSpan[];
    resourceLogs?: OtlpResourceLog[];
}
export declare function fromOtlpValue(value: OtlpValue): any;
export declare function traceDataFromOtlp(otlpData: OtlpPayload): TraceData[];
export declare function logDataFromOtlp(otlpData: OtlpPayload): LogRecordData[];
export {};
