import type { AgentAdapterType, EnvironmentDriver } from "./constants.js"; import type { SandboxEnvironmentProvider } from "./types/environment.js"; import type { JsonSchema, PluginEnvironmentTemplateConfigBinding, SandboxProviderCapabilities } from "./types/plugin.js"; /** * Resolve the DECLARED sandbox capabilities of a provider driver, with the * legacy `supportsReusableLeases` flag folded in for compatibility. * * The result is a partial: a key is present only when the driver declared it, * so a caller can tell a declared `false` from an absent key. The nested * `sandboxCapabilities.reusableLeases` wins over the legacy flag when both are * present. This is the DECLARATION only; the runtime still intersects it with * the verified worker methods and any narrowing before it grants a capability. */ export declare function resolveDeclaredSandboxCapabilities(driver: { supportsReusableLeases?: boolean; sandboxCapabilities?: SandboxProviderCapabilities; }): SandboxProviderCapabilities; export type EnvironmentSupportStatus = "supported" | "unsupported"; export interface AdapterEnvironmentSupport { adapterType: AgentAdapterType; drivers: Record; sandboxProviders: Record; } export interface EnvironmentProviderCapability { status: EnvironmentSupportStatus; supportsSavedProbe: boolean; supportsUnsavedProbe: boolean; supportsRunExecution: boolean; supportsReusableLeases: boolean; supportsInteractiveSetup: boolean; interactiveSetupConnectionTypes: string[]; supportsTemplateCapture: boolean; templateRefKind?: string; templateConfigBinding?: PluginEnvironmentTemplateConfigBinding; supportsTemplateDelete: boolean; supportsLoginPty: boolean; displayName?: string; description?: string; source?: "builtin" | "plugin"; pluginKey?: string; pluginId?: string; configSchema?: JsonSchema; } export interface EnvironmentCapabilities { adapters: AdapterEnvironmentSupport[]; drivers: Record; sandboxProviders: Record; } export declare function adapterSupportsRemoteManagedEnvironments(adapterType: string): boolean; export declare function supportedEnvironmentDriversForAdapter(adapterType: string): EnvironmentDriver[]; export declare function supportedSandboxProvidersForAdapter(adapterType: string, additionalProviders?: readonly string[]): SandboxEnvironmentProvider[]; export declare function isEnvironmentDriverSupportedForAdapter(adapterType: string, driver: string): boolean; export declare function isSandboxProviderSupportedForAdapter(adapterType: string, provider: string | null | undefined, additionalProviders?: readonly string[]): boolean; export declare function getAdapterEnvironmentSupport(adapterType: AgentAdapterType, additionalSandboxProviders?: readonly string[]): AdapterEnvironmentSupport; export declare function getEnvironmentCapabilities(adapterTypes: readonly AgentAdapterType[], options?: { sandboxProviders?: Record>; }): EnvironmentCapabilities; //# sourceMappingURL=environment-support.d.ts.map