mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-22 21:31:17 +00:00
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import type {
|
|
ExecFileSyncOptions,
|
|
ExecFileSyncOptionsWithBufferEncoding,
|
|
ExecFileSyncOptionsWithStringEncoding,
|
|
} from "node:child_process";
|
|
|
|
export function plainGhEnv(env?: NodeJS.ProcessEnv): {
|
|
[key: string]: string | undefined;
|
|
};
|
|
export function resolvePlainGhBin(env?: NodeJS.ProcessEnv, systemCandidates?: string[]): string;
|
|
export function execPlainGh(
|
|
args: readonly string[],
|
|
options: ExecFileSyncOptionsWithStringEncoding,
|
|
): string;
|
|
export function execPlainGh(
|
|
args: readonly string[],
|
|
options?: ExecFileSyncOptionsWithBufferEncoding,
|
|
): Uint8Array<ArrayBuffer>;
|
|
export function execPlainGh(
|
|
args: readonly string[],
|
|
options?: ExecFileSyncOptions,
|
|
): string | Uint8Array<ArrayBuffer>;
|
|
export function execGhApiRead(
|
|
endpoint: string,
|
|
options: ExecFileSyncOptionsWithStringEncoding,
|
|
): string;
|
|
export function execGhApiRead(
|
|
endpoint: string,
|
|
options?: ExecFileSyncOptionsWithBufferEncoding,
|
|
): Uint8Array<ArrayBuffer>;
|
|
export function execGhApiRead(
|
|
endpoint: string,
|
|
options?: ExecFileSyncOptions,
|
|
): string | Uint8Array<ArrayBuffer>;
|
|
export const PLAIN_GH_SYSTEM_CANDIDATES: string[];
|