import type { ManagedTextFileSnapshot, WirePreviewManifest } from "../types.js"; import type { WireMode } from "./types.js"; import { buildCodexPluginManifest, buildCodexHooksManifest, buildLegacyCodexHooksManifest } from "./codex-native.js"; import { describeJsonValue, isBenignRemoveDirectoryRace, mergeJsonObjects, mergeStringArraysPreservingOrder, removeEmptyParentDirectories, removeManagedStringArrayEntries, validateManagedTextFileSnapshots } from "./native-utils.js"; import type { NativeHost, NativeHostSpec } from "./native-utils.js"; /** Re-export NativeHost for consumers that reference the wire-layer host type. */ export type NativeWireHost = NativeHost; /** * Provides wire native host for the lifecycle pipeline. */ export declare function wireNativeHost(host: NativeWireHost, options: { projectRoot: string; workspaceRoot: string; mode: WireMode; }): Promise; declare function cleanupFailedNativeHostApply(spec: NativeHostSpec, workspaceRoot: string, managedRoot: string, hostActivationRoot: string, textFileSnapshots: ManagedTextFileSnapshot[]): Promise; /** * Formats unknown errors for best-effort warning messages. */ declare function toLoggableErrorMessage(error: unknown): string; /** * Prints a wire preview manifest to stdout for preview mode. * Shared between native-wire and vscode wire flows. Ticket: #403. */ export declare function printWirePreviewManifest(preview: WirePreviewManifest): void; /** * Formats a WirePreviewManifest as a human-readable plan preview. * * Produces structured output matching the style of OpenCode's wire preview, * with host info, target paths, and notes. Ticket: #403. */ export declare function formatWirePreviewManifest(preview: WirePreviewManifest): string; /** * Exposes focused native wire helpers for behavioral coverage. */ export declare const nativeWireInternals: { cleanupFailedNativeHostApply: typeof cleanupFailedNativeHostApply; describeJsonValue: typeof describeJsonValue; formatWirePreviewManifest: typeof formatWirePreviewManifest; mergeJsonObjects: typeof mergeJsonObjects; mergeStringArraysPreservingOrder: typeof mergeStringArraysPreservingOrder; isBenignRemoveDirectoryRace: typeof isBenignRemoveDirectoryRace; nativeHostSpecs: Record; removeEmptyParentDirectories: typeof removeEmptyParentDirectories; removeManagedStringArrayEntries: typeof removeManagedStringArrayEntries; toLoggableErrorMessage: typeof toLoggableErrorMessage; validateManagedTextFileSnapshots: typeof validateManagedTextFileSnapshots; buildCodexPluginManifest: typeof buildCodexPluginManifest; buildCodexHooksManifest: typeof buildCodexHooksManifest; buildLegacyCodexHooksManifest: typeof buildLegacyCodexHooksManifest; }; export {};