import { type Meter, type Tracer } from "@opentelemetry/api"; import { type Logger } from "@opentelemetry/api-logs"; import { DeploymentTypeEnum } from "@superblocksteam/shared"; import type { ApplicationConfigWithTokenConfigAndUserInfo } from "../types/index.js"; /** * Current deployment type based on SUPERBLOCKS_DEPLOYMENT_TYPE env var. * Defaults to CLOUD if not specified or invalid. */ export declare const deploymentType: DeploymentTypeEnum; /** * Whether the current deployment is CLOUD_PREM. * Used to determine LLMObs export behavior: * - CLOUD: LLMObs exports via agentless mode directly to Datadog * - CLOUD_PREM: LLMObs spans are converted to OTEL spans and exported via OTEL collector */ export declare const isCloudPrem: boolean; /** * Shut down telemetry, forcing a final flush of all buffered traces, metrics, * and logs (via `sdk.shutdown()` → the metric reader's force-flush). * * Never rejects: shutdown errors are caught and logged internally. Returns * `true` only when a flush actually ran to completion; `false` when telemetry * was never initialized (nothing to flush) or `sdk.shutdown()` threw (the * export may not have completed). Callers can use the return value to report * whether buffered samples were really flushed — any `try/catch` around it is * purely defensive. */ export declare function shutdownTelemetry(): Promise; export declare function configureTelemetry(applicationConfig?: ApplicationConfigWithTokenConfigAndUserInfo): Promise; export declare function getLogger(): Logger; export declare function getTracer(): Tracer; export declare function getMeter(): Meter; //# sourceMappingURL=index.d.ts.map