import { BridgeBroker } from '../control-bridge/broker.js'; import type { LogContext } from '../control-bridge/contracts.js'; export interface ControlledBuildParts { producerSource: (options: { session: { controlPort: number; instanceId: string; connectableHost: string; }; context: 'background'; }) => string; relayTargets: ReadonlyArray<{ re: RegExp; context: LogContext; }>; backgroundAsset: RegExp; addPolicySources: (current: string[], added: string[]) => string[]; } export interface ProductionControlOptions { parts: ControlledBuildParts; packageJsonDir: string; browser: string; distPath: string; command?: 'start' | 'preview'; allowControl?: boolean; allowEval?: boolean; host?: string; runId?: string; onExecutorAttached?: () => void; onExecutorDetached?: () => void; wakeExecutor?: () => Promise; } export interface ProductionControlSession { controlPort: number; instanceId: string; controlledPath: string; logsPath: string; backgroundAssets: string[]; broker: BridgeBroker; close(): Promise; } export declare function controlledBuildDir(packageJsonDir: string, browser: string, distPath?: string): string; export declare function declaredBackgroundFiles(manifest: Record, browser?: string): { files: string[]; runsNone: boolean; }; export declare function startProductionControl(options: ProductionControlOptions): Promise;