import { LaboratoryEnv, LaboratoryEnvActions, LaboratoryEnvState } from './env'; import { LaboratoryPlugin } from './plugins'; export interface LaboratoryPreflightLog { level: 'log' | 'warn' | 'error' | 'info' | 'system'; message: unknown[]; createdAt: string; } export interface LaboratoryPreflightResult { status: 'success' | 'error'; error?: string; logs: LaboratoryPreflightLog[]; env: LaboratoryEnv; headers: Record; pluginsState: Record; } export interface LaboratoryPreflight { enabled: boolean; script: string; lastTestResult?: LaboratoryPreflightResult | null; } export interface LaboratoryPreflightState { preflight: LaboratoryPreflight | null; } export interface LaboratoryPreflightActions { setPreflight: (preflight: LaboratoryPreflight) => void; runPreflight: (plugins?: LaboratoryPlugin[], pluginsState?: Record) => Promise; setLastTestResult: (result: LaboratoryPreflightResult | null) => void; } export declare const usePreflight: (props: { defaultPreflight?: LaboratoryPreflight | null; onPreflightChange?: (preflight: LaboratoryPreflight | null) => void; envApi: LaboratoryEnvState & LaboratoryEnvActions; }) => LaboratoryPreflightState & LaboratoryPreflightActions; export declare function runIsolatedLabScript(script: string, env: LaboratoryEnv, prompt?: (placeholder: string, defaultValue: string) => Promise, plugins?: LaboratoryPlugin[], pluginsState?: Record): Promise;