import type { AgentBuilder, BaseAgent, BuiltAgent } from "@iqai/adk"; import { z } from "zod"; /** * Session state - keyed object with unknown values */ export type SessionState = Record; /** * Session-like object with optional state */ export interface SessionWithState { state?: SessionState; } /** * Possible agent export types */ export type PossibleAgentExport = BaseAgent | AgentBuilder | BuiltAgent | { agent: BaseAgent | AgentBuilder | BuiltAgent; } | (() => BaseAgent | AgentBuilder | BuiltAgent | Promise); /** * TypeScript path configuration from tsconfig.json */ export interface TsConfigPaths { baseUrl?: string; paths?: Record; } /** * ESBuild plugin setup callback arguments */ export interface ESBuildOnResolveArgs { path: string; importer: string; namespace: string; resolveDir: string; kind: string; pluginData: Record; } /** * ESBuild plugin setup callback result */ export interface ESBuildOnResolveResult { path: string; external?: boolean; namespace?: string; pluginData?: Record; } /** * ESBuild plugin setup interface */ export interface ESBuildPluginSetup { onResolve: (options: { filter: RegExp; namespace?: string; }, callback: (args: ESBuildOnResolveArgs) => ESBuildOnResolveResult | undefined) => void; } /** * ESBuild plugin structure */ export interface ESBuildPlugin { name: string; setup: (build: ESBuildPluginSetup) => void; } /** * Require-like interface for dynamic module loading */ export interface RequireLike { (id: string): ModuleExport; resolve?: (id: string) => string; cache?: Record; } /** * Result of agent export resolution */ export interface AgentExportResult { agent: BaseAgent; builtAgent?: BuiltAgent; } /** * Possible agent export value types */ export type AgentExportValue = BaseAgent | BuiltAgent | AgentBuilder | (() => BaseAgent | BuiltAgent | AgentBuilder | Promise); /** * Module export shape from dynamic import */ export interface ModuleExport extends Record { default?: AgentExportValue | ModuleExport | unknown; agent?: AgentExportValue | unknown; } /** * Zod schema for validating tsconfig.json structure */ export declare const TsConfigSchema: z.ZodObject<{ compilerOptions: z.ZodOptional; paths: z.ZodOptional>>; }, z.core.$strip>>; }, z.core.$strip>; //# sourceMappingURL=agent-loader.types.d.ts.map