import { Sessions } from "./session.js"; import type { Fetch } from "./transport.js"; import type { WebSocketFactory } from "@aexhq/brain"; export { AbortError, AexError, OutputRefusalError, OutputSchemaError, OutputValidationError, SessionError, } from "./errors.js"; export type { AexErrorOptions, OutputValidationIssue } from "./errors.js"; export { Session, Sessions, } from "./session.js"; export type { AgentloopBundle, CreateSessionOptions, ListSessionsOptions, ModelSummary, ModelOptions, OutputOptions, RequestOptions, SessionInput, SessionList, SessionSummary, } from "./session.js"; export { SandboxFiles, SessionChild, SessionChildren, SessionSandbox, SessionStorage, } from "./resources.js"; export type { BinarySource, ChildSummary, IdempotentOperationOptions, OperationOptions, PageOptions, SandboxFile, SandboxFileOptions, SandboxFilePage, SandboxFilePageOptions, SandboxStatus, StorageObject, StoragePage, StreamingUploadSource, UploadSource, } from "./resources.js"; export type { EventOptions } from "./transport.js"; export { tool } from "@aexhq/brain"; export type { ClientToolOptions, Tool, ToolBuilder, ToolContract, ToolContext, ToolHandler, ServerToolOptions, NetworkDestination, NetworkPolicy, WebSocketFactory, } from "@aexhq/brain"; export interface AexOptions { apiKey: string; baseUrl?: string; fetch?: Fetch; webSocketFactory?: WebSocketFactory; /** Stable tenant-scoped identity for this exact customer-application runner. */ client?: { id: string; }; } export declare class Aex { readonly sessions: Sessions; constructor(options: AexOptions); /** Stop customer-app execution permanently; this Aex instance cannot create another session. */ close(): void; }