import type { AppEnv } from '../types.js';
export declare const TELEMETRY_SERVICE = "jobplatform";
export interface ServiceEvent {
    level: 'info' | 'warn' | 'error';
    /** Lands in the `event` column; keep it short and stable, it is what gets grouped by. */
    event: string;
    message: string;
    context?: Record<string, unknown>;
}
/** True when this worker has what posting needs. Callers skip the post when it doesn't. */
export declare function canPostTelemetry(env: AppEnv | undefined): env is AppEnv;
/** Resolves when monitoring-api has accepted the row; rejects with the reason it didn't. */
export declare function postServiceEvent(env: AppEnv, ev: ServiceEvent): Promise<void>;
//# sourceMappingURL=telemetry.d.ts.map