export declare const OSS_REMOTE_TELEMETRY_SCHEMA = "humanish.oss-remote-telemetry.v1"; export type OssRemoteCompletionStatus = "running" | "passed" | "failed" | "blocked" | "timed_out" | "missing"; export type OssRemoteProcessState = "running" | "suspended" | "exited" | "unknown"; export type OssRemoteAppStatus = "running" | "stopped" | "missing" | "unknown"; export type OssRemoteActorState = "running" | "suspended" | "passed" | "failed" | "blocked" | "timed_out" | "unknown"; export type OssRemoteLaneStatus = "running" | "passed" | "failed" | "blocked" | "timed_out" | "missing"; export interface OssRemoteTelemetryInput { actorStateText?: string | null; appStatusText?: string | null; appUrl?: string | null; checkedAt?: string; completionJson?: Record | string | null; logTail?: string | null; nestedObserverPath?: string | null; nestedObserverPresent?: boolean | null; processStateText?: string | null; streamUrl?: string | null; } export interface OssRemoteCompletionTelemetry { checkedAt: string; present: boolean; reason: string; status: OssRemoteCompletionStatus; exitCode?: number; logTail?: string; nestedObserverPresent?: boolean; nestedVerifyPassed?: boolean; } export interface OssRemoteTelemetry { schema: typeof OSS_REMOTE_TELEMETRY_SCHEMA; checkedAt: string; status: OssRemoteLaneStatus; completion: OssRemoteCompletionTelemetry; process: { state: OssRemoteProcessState; summary: string; text: string; }; app: { status: OssRemoteAppStatus; statusText: string; url?: string; }; stream: { present: boolean; url?: string; }; nestedObserver: { presence: "present" | "missing" | "unknown"; path?: string; }; actor: { state: OssRemoteActorState; summary: string; text: string; }; redaction: { status: "passed"; redacted: boolean; fields: string[]; notes: string; }; } export declare function buildOssRemoteTelemetry(input: OssRemoteTelemetryInput): OssRemoteTelemetry; export declare function parseOssRemoteCompletion(payload: Record | string | null | undefined, options?: { checkedAt?: string; fallbackLogTail?: string; }): OssRemoteCompletionTelemetry; export declare function normalizeOssRemoteCompletionStatus(value: unknown): Exclude | null; export declare function classifyOssRemoteProcessState(text: string): OssRemoteProcessState; export declare function classifyOssRemoteAppStatus(input: { statusText?: string; url?: string; }): OssRemoteAppStatus; export declare function classifyOssRemoteActorState(actorStateText: string, processState?: OssRemoteProcessState, completionStatus?: OssRemoteCompletionStatus): OssRemoteActorState; export declare function redactOssRemoteTelemetryText(value: string): string; export declare function sanitizeOssRemoteTelemetryUrl(value: string): string;