import type { AssetHostNativeConfigMap, AssetHostNativeFilePayload, NativeConfigOperation } from "../types.js"; type NativeConfigHost = "opencode" | "cursor" | "zed" | "claude-code" | "pi" | "codex"; /** * Collects structured native-config file payloads for one host. */ export declare function collectHostNativeFilePayloads(assets: Array<{ hostNativeConfig?: AssetHostNativeConfigMap; }>, host: NativeConfigHost): AssetHostNativeFilePayload[]; /** * Applies validated native-config payloads for one host and returns reversible operations. */ export declare function applyHostNativeFilePayloads(options: { workspaceRoot: string; host: NativeConfigHost; payloads: AssetHostNativeFilePayload[]; }): Promise; /** * Reverts previously applied native-config operations. */ export declare function revertNativeConfigOperations(options: { workspaceRoot: string; host: NativeConfigHost; operations: NativeConfigOperation[] | undefined; }): Promise; /** * Builds a relative workspace path that OpenCode can consume from opencode.json. */ export declare function toWorkspaceRelativeConfigPath(workspaceRoot: string, absolutePath: string): string; declare function resolveWorkspacePath(workspaceRoot: string, relativePath: string): string; declare function assertAllowedHostNativePath(host: NativeConfigHost, relativePath: string, payload: AssetHostNativeFilePayload): void; /** * Exposes pure native-config helpers for focused behavioral coverage. */ export declare const nativeConfigInternals: { assertAllowedHostNativePath: typeof assertAllowedHostNativePath; resolveWorkspacePath: typeof resolveWorkspacePath; }; export {};