/** Options for the standalone Inth executable adapter. */ export interface InthOptions { cwd?: string; interactive?: boolean; signal?: AbortSignal; } /** Host facts that decide whether a native Inth executable exists. @internal */ export interface InthHost { arch: string; /** True for Linux distributions built on musl libc, such as Alpine. */ isMusl: boolean; platform: NodeJS.Platform; } /** * Resolve the native binary shipped by our pinned Inth dependency. * @param host Platform facts; defaults to the running process. * @param resolve Module resolver; defaults to resolving from `@inth/cli`. * @returns Absolute path of an executable Inth binary. * @throws {CliError} INTH_UNSUPPORTED_PLATFORM when Inth ships no binary for * this platform, or INTH_UNAVAILABLE when the binary is missing or packed. * @internal */ export declare const resolveInthExecutable: (host?: InthHost, resolve?: (specifier: string) => string) => string; /** Executable resolution port for standalone integration tests. @internal */ export interface InthRuntime { resolveExecutable: () => string; } /** Default runtime uses the native executable from the installed dependency. @internal */ export declare const inthRuntime: InthRuntime; /** * Rewrite Inth command guidance to the matching c15t commands. * @param message Message produced by Inth. * @returns The message with known `inth …` commands replaced. * @internal */ export declare const toC15tGuidance: (message: string) => string; /** * Execute pinned Inth without a shell or access to its credential store. * @param args Inth command and arguments. Do not pass credentials in arguments. * @param options Application cwd, terminal mode, and cancellation from the caller. * @returns Inth's JSON data, or null after a successful interactive session. * @throws {CliError} On invalid output, command failure, or cancellation. * @internal */ export declare const runInth: (args: string[], options?: InthOptions) => Promise;