import { LaunchProfileCatalog, LaunchSelection } from "@agimon-ai/po-core/web"; //#region src/web/features/sessions/useNewSessionActions.d.ts /** * Shared ways to finish a new-session dialog: create a plain session in the * workspace root, or open one another package created. Both resolve an error * message to show, or undefined once the dialog closed and the session is open. * `createPlain` takes the launcher's profile choice when its caller holds one; * without it the dialog's own draft decides. A workspace-free session has no * profile list to offer, so `loadProfiles` exists only for a workspace. */ export declare function useNewSessionActions(workspaceId: string | null, onClose: () => void, hostId?: string): { createPlain: (name?: string, selection?: LaunchSelection) => Promise; openCreated: (sessionId: string) => Promise; loadProfiles?: ((signal?: AbortSignal) => Promise) | undefined; }; //#endregion //# sourceMappingURL=useNewSessionActions.d.mts.map