import type { NativeMessagesRequest, NativeUsageSnapshot, NativeUsageTermination } from '@sentropic/llm-mesh'; import { NativeUsageObserver } from './native-usage.js'; export declare const NATIVE_FINALIZE_TIMEOUT_MS = 1000; export type NativeFinalizeResult = { readonly kind: 'completed' | 'absent'; } | { readonly kind: 'observation_unavailable'; readonly reason: 'hook_error' | 'hook_timeout'; }; /** Catch the hook immediately; expiry never cancels/retries an issued observation. */ export declare const finalizeNativeObservation: (hook: NativeMessagesRequest['finalize'], snapshot: NativeUsageSnapshot) => Promise; /** Synchronous terminal ownership; financial and cleanup paths never await observation. */ export declare const nativeLifecycle: (observer: NativeUsageObserver, hook: NativeMessagesRequest['finalize'], identity: { readonly requestId: string; readonly attemptRef: string; }) => { finish: (termination: NativeUsageTermination) => NativeUsageSnapshot; usage: (termination: NativeUsageTermination) => import("./flow.js").SettleUsage; readonly snapshot: NativeUsageSnapshot | undefined; readonly observation: Promise | undefined; }; //# sourceMappingURL=native-lifecycle.d.ts.map