Files
hermes-agent/ui-tui/packages/hermes-ink/ambient.d.ts
T
红尘 d73ff9b0fb
Deploy Site / deploy-vercel (push) Has been cancelled
Deploy Site / deploy-docs (push) Has been cancelled
Docker / shell lint / Lint Dockerfile (hadolint) (push) Has been cancelled
Docker / shell lint / Lint docker/ shell scripts (shellcheck) (push) Has been cancelled
Docker Build and Publish / build-amd64 (push) Has been cancelled
Docker Build and Publish / build-arm64 (push) Has been cancelled
Lint (ruff + ty) / ruff + ty diff (push) Has been cancelled
Lint (ruff + ty) / ruff enforcement (blocking) (push) Has been cancelled
Lint (ruff + ty) / Windows footguns (blocking) (push) Has been cancelled
Nix Lockfile Fix / auto-fix-main (push) Has been cancelled
Nix Lockfile Fix / fix (push) Has been cancelled
Nix / nix (macos-latest) (push) Has been cancelled
Nix / nix (ubuntu-latest) (push) Has been cancelled
OSV-Scanner / Scan lockfiles (push) Has been cancelled
Build Skills Index / build-index (push) Has been cancelled
Tests / test (1) (push) Has been cancelled
Tests / test (2) (push) Has been cancelled
Tests / test (3) (push) Has been cancelled
Tests / test (4) (push) Has been cancelled
Tests / test (5) (push) Has been cancelled
Tests / test (6) (push) Has been cancelled
Tests / e2e (push) Has been cancelled
uv.lock check / uv lock --check (push) Has been cancelled
Docker Build and Publish / merge (push) Has been cancelled
Build Skills Index / trigger-deploy (push) Has been cancelled
Tests / save-durations (push) Has been cancelled
Initial import of NousResearch/hermes-agent
2026-05-31 09:36:58 +08:00

84 lines
2.6 KiB
TypeScript

/// <reference types="react" />
declare module 'react/compiler-runtime' {
export function c(size: number): any[]
}
declare module 'bidi-js' {
const bidiFactory: () => Record<string, any>
export default bidiFactory
}
declare module 'stack-utils' {
class StackUtils {
static nodeInternals(): RegExp[]
constructor(opts?: { cwd?: string; internals?: RegExp[] })
clean(stack: string | undefined): string | undefined
parseLine(line: string): { file?: string; line?: number; column?: number; function?: string } | undefined
}
export default StackUtils
}
declare module 'react-reconciler' {
export type FiberRoot = unknown
const createReconciler: any
export default createReconciler
}
declare module 'react-reconciler/constants.js' {
export const ConcurrentRoot: number
export const LegacyRoot: number
export const DiscreteEventPriority: symbol | number
export const ContinuousEventPriority: symbol | number
export const DefaultEventPriority: symbol | number
export const NoEventPriority: symbol | number
}
declare module 'lodash-es/noop.js' {
const noop: (...args: unknown[]) => void
export default noop
}
declare module 'lodash-es/throttle.js' {
function throttle<T extends (...args: unknown[]) => unknown>(
fn: T,
wait?: number,
opts?: { leading?: boolean; trailing?: boolean }
): T & { cancel(): void; flush(): void }
export default throttle
}
declare module 'semver' {
export function coerce(version: string | number | null | undefined): { version: string } | null
export function gt(a: string, b: string, opts?: { loose?: boolean }): boolean
export function gte(a: string, b: string, opts?: { loose?: boolean }): boolean
export function lt(a: string, b: string, opts?: { loose?: boolean }): boolean
export function lte(a: string, b: string, opts?: { loose?: boolean }): boolean
export function satisfies(version: string, range: string, opts?: { loose?: boolean }): boolean
export function compare(a: string, b: string, opts?: { loose?: boolean }): number
}
interface BunSemver {
order(a: string, b: string): -1 | 0 | 1
satisfies(version: string, range: string): boolean
}
interface BunRuntime {
stringWidth(s: string, opts?: { ambiguousIsNarrow?: boolean }): number
semver: BunSemver
wrapAnsi?(input: string, columns: number, options?: { hard?: boolean; wordWrap?: boolean; trim?: boolean }): string
}
declare var Bun: BunRuntime | undefined
declare namespace React {
namespace JSX {
interface IntrinsicElements {
'ink-box': Record<string, unknown>
'ink-text': Record<string, unknown>
'ink-link': Record<string, unknown>
'ink-raw-ansi': Record<string, unknown>
}
}
}