import { BaseConnector, type InstallResult, type UninstallResult } from "@signetai/connector-base"; export type SignetMcpConfig = { readonly command: string; readonly args: readonly string[]; readonly env?: Readonly>; } | { readonly url: string; readonly startupTimeoutSec: number; readonly toolTimeoutSec: number; readonly httpHeaders?: Readonly>; }; interface CodexPluginBundleResult { readonly marketplaceRoot: string; readonly pluginRoot: string; readonly filesWritten: readonly string[]; } interface NativePluginCommandResult { readonly success: boolean; readonly filesWritten: readonly string[]; readonly warning?: string; } interface WindowsAppxQueryResult { readonly status: number | null; readonly stdout: string; } type WindowsAppxQuery = (command: string) => WindowsAppxQueryResult; export declare function resolveWindowsAppxInstallRoots(platform?: NodeJS.Platform, query?: WindowsAppxQuery): string[]; export declare function resolveCodexDesktopNode(appPaths?: readonly string[], validate?: (path: string) => boolean, platform?: NodeJS.Platform): string | null; export declare function resolveCodexCli(appPaths?: readonly string[], validate?: (path: string) => boolean, platform?: NodeJS.Platform): string | null; export declare function writeCodexPluginBundle(input: { readonly codexHome: string; readonly signetArgs?: readonly string[]; readonly mcp?: SignetMcpConfig; readonly remoteDaemonUrl?: string | null; readonly windowsHookCommand?: string | null; }): CodexPluginBundleResult; interface MatcherGroup { matcher?: string; hooks: HandlerConfig[]; } interface HandlerConfig { type: "command"; command: string; commandWindows?: string; timeout?: number; } interface HooksFile { description?: string; hooks?: Record; [key: string]: unknown; } export declare function buildHooksFile(signetArgs: string[], remoteDaemonUrl?: string | null, windowsHookCommand?: string | null, platform?: NodeJS.Platform): HooksFile; export declare function buildMcpBlock(mcp: SignetMcpConfig): string; export declare class CodexConnector extends BaseConnector { readonly name = "Codex"; readonly harnessId = "codex"; getIconAsset(): string; protected getCodexHome(): string; protected getCodexDesktopAppPaths(): readonly string[]; protected resolveCodexDesktopNode(): string | null; protected resolveCodexCli(): string | null; protected supportsNativePluginInstall(): boolean; protected nativePluginProvidesHooks(): boolean; protected installNativePlugin(codexHome: string, marketplaceRoot: string): NativePluginCommandResult; protected removeNativePlugin(codexHome: string): void; private getHooksJsonPath; getConfigPath(): string; private installCompatibilityHooks; private removeCompatibilityHooks; install(basePath: string): Promise; uninstall(): Promise; isInstalled(): boolean; } export {}; //# sourceMappingURL=index.d.ts.map