import type { LoadedProfile } from './profile'; /** * Fan-out for in-session profile switches (ReloadProfile). * * Connection-reset hooks (./connectionEvents) also fire on token refresh, so * they must not re-read connection parameters. Profile-change hooks fire only * after a new profile has been applied to process.env, and receive it, so a * listener can rebind anything it captured at boot (stdio connection params, * RFC CSRF sessions, ...). */ export type ProfileChangeHook = (loaded: LoadedProfile) => void; export declare function registerProfileChangeHook(hook: ProfileChangeHook): () => void; /** Returns the errors of hooks that threw, so the caller can report them. */ export declare function notifyProfileChanged(loaded: LoadedProfile): Error[]; export declare function clearProfileChangeHooks(): void; //# sourceMappingURL=profileEvents.d.ts.map