import { k as PoHarnessContext, u as HarnessState } from "./config-DS0HTIUU.mjs"; import { p as PresetsConfig } from "./index-BeSAaIoW.mjs"; import { p as AgentProfile } from "./index-DATCA6lI.mjs"; import { FileSystem } from "@agimon-ai/po-core/platform"; //#region src/services/selectionSwitch/sync.d.ts /** * Applies one preset and the hook groups its effective layers contribute. * * @deprecated Node-only sync shim; use applyPresetAsync. Removed in M2. */ export declare function applyPreset(config: PresetsConfig, preset: string, state: PoHarnessContext, compositionFingerprint?: string, childExtensions?: readonly string[]): HarnessState; /** * Persona: rewrites the assembled prompt file that the persona extension reads. * * The extension re-reads the file on reload and appends its block to whatever * system prompt it is given, so the repository's own AGENTS.md keeps applying * underneath. Returns false when the directories hold no readable persona. * * @deprecated Node-only shim over node:fs; use applyPersonaAsync. Removed in M2. */ export declare function applyPersona(personaDirectory: string, state: PoHarnessContext, personaRoot?: string, personaPrompt?: string): Promise; /** * Profile: one persona plus the environment defaults it declares. * * @deprecated Node-only shim over node:fs; use applyProfileAsync. Removed in M2. */ export declare function applyProfile(profile: AgentProfile, state: PoHarnessContext): Promise; //#endregion //#region src/services/selectionSwitch/index.d.ts type IoContext = Parameters[1]; interface SelectionSwitchOptions { /** The admitted environment the harness state pointer lives in. Defaults to empty. */ readonly environment?: NodeJS.ProcessEnv; } /** Applies one preset over a FileSystem; the same patch `applyPreset` writes. */ export declare function applyPresetAsync(fs: FileSystem, config: PresetsConfig, preset: string, state: PoHarnessContext, context: IoContext, options?: SelectionSwitchOptions & { readonly compositionFingerprint?: string; readonly childExtensions?: readonly string[]; }): Promise; /** * Persona over a FileSystem: rewrites the assembled prompt file that the persona * extension reads, readable by its owner only. Returns false when the * directories hold no readable persona. */ export declare function applyPersonaAsync(fs: FileSystem, personaDirectory: string, state: PoHarnessContext, context: IoContext, options?: SelectionSwitchOptions & { readonly personaRoot?: string; readonly personaPrompt?: string; }): Promise; /** Profile over a FileSystem: one persona plus the environment defaults it declares. */ export declare function applyProfileAsync(fs: FileSystem, profile: AgentProfile, state: PoHarnessContext, context: IoContext, options?: SelectionSwitchOptions): Promise; //#endregion export type { SelectionSwitchOptions }; //# sourceMappingURL=selectionSwitch.d.mts.map