import { type ProfileEntry } from '../../agents/profile-manager.js'; import type { UiServiceDeps, Result, ProfileDraftInput, ProfilesCreateArgs, ProfilesCreateReturn, ProfilesUpdateArgs, ProfilesUpdateReturn, ProfilesRemoveArgs, ProfilesRemoveReturn } from '../types.js'; /** * Assemble the stored entry from the draft. Optional fields the draft omits are DROPPED (the draft * is the complete desired state for everything the editor can express), while `extraEnv` and * `fallback` are carried over from `preserved` — the UI cannot express either (extraEnv values are * secret-bearing and never leave the server; fallback is a nested chain with no editor), so an edit * must not silently delete them. Key order matches how init writes the file. */ export declare function buildProfileEntry(draft: ProfileDraftInput, preserved?: ProfileEntry): ProfileEntry; export declare function createProfile(configDir: string, args: ProfilesCreateArgs): Promise; export declare function updateProfile(configDir: string, args: ProfilesUpdateArgs): Promise; /** * Deleting the profile `defaultProfile` points at would leave every agent start resolving a * missing profile, and deleting the last one leaves nothing to resolve at all. Both are refused * with the remedy in the message rather than written and then discovered at spawn time. */ export declare function removeProfile(configDir: string, args: ProfilesRemoveArgs): Promise; export declare function handleProfilesCreate(_deps: UiServiceDeps, args: ProfilesCreateArgs): Promise>; export declare function handleProfilesUpdate(_deps: UiServiceDeps, args: ProfilesUpdateArgs): Promise>; export declare function handleProfilesRemove(_deps: UiServiceDeps, args: ProfilesRemoveArgs): Promise>;