import { hasIdentity } from "./session-env.js"; /** Re-exported for a plugin process that must stay off the barrel, as a hook does. */ export { hasIdentity }; /** Answers one hook event inside the hook process, before the control socket is resolved. A reply * is printed as the hook's output and the event is not relayed; `undefined` relays it as usual. * It runs in every session. `managed` says whether the session carries a mesh identity, which is * the only kind the relay forwards. */ export type LocalHookAnswer = (event: unknown, session: { managed: boolean; }) => Record | undefined; /** Relay one hook event from stdin to the connector's control socket and print the reply. `answer` * runs first, so a decision that needs no connector state holds even when the socket is down. */ export declare function runHookRelay(answer?: LocalHookAnswer, observe?: (event: unknown, session: { managed: boolean; }) => Promise): Promise; //# sourceMappingURL=relay.d.ts.map