/** Node's `setTimeout` ceiling (2^31 - 1), used when dsh-timeout is unavailable. */ export declare const NODE_MAX_TIMER_DELAY_MS = 2147483647; /** The raw modules this facade forwards to, as resolved at boot. */ export interface DshSymbolModules { tools?: { defineTool?: unknown; ToolArgsError?: unknown; }; timeout?: { deadline?: unknown; MAX_TIMER_DELAY_MS?: number; }; credentials?: { credentialRef?: unknown; }; subagent?: { delegationDepthOf?: unknown; }; compaction?: { BasicCompactionEngine?: unknown; }; llm?: { BlockAssembler?: unknown; }; } /** * Module-level dsh symbols, grouped by owning package. * * Types are deliberately loose (`any`-shaped call signatures): pinning dsh's * internal shapes here would defeat the shim's purpose, exactly as * `src/types.ts` explains for the service surfaces. */ export interface DshSymbolsAPI { tools: { /** `defineTool(definition)` — build a tool definition dsh's registry accepts. */ defineTool(definition: T): T; /** `ToolArgsError` — the error class dsh expects for invalid tool arguments. */ readonly ToolArgsError: new (messages: string[]) => Error; }; timeout: { /** `deadline(...)` — dsh's cancellation-aware deadline helper. */ deadline(...args: any[]): T; /** dsh's timer ceiling; falls back to Node's own 2^31-1 when unavailable. */ readonly MAX_TIMER_DELAY_MS: number; }; credentials: { /** `credentialRef(ref)` — brand a raw reference for `credentials.resolve`. */ credentialRef(ref: unknown): unknown; }; subagent: { /** `delegationDepthOf(agent)` — how deep a delegated agent sits. */ delegationDepthOf(agent: unknown): number; }; compaction: { /** * `BasicCompactionEngine` — the base class a plugin subclasses to override * `summarize`. Throws when unavailable, because a subclass declaration has * no meaningful fallback. */ readonly BasicCompactionEngine: new (...args: any[]) => any; }; llm: { /** `BlockAssembler` — dsh's streaming content-block assembler. */ readonly BlockAssembler: new (...args: any[]) => any; }; } /** Build the `ctx.dshLoader.dsh` facade over boot-resolved modules. */ export declare function createDshSymbolsAPI(opts: { modules?: DshSymbolModules; }): DshSymbolsAPI;