import type { ScopeLifecycle } from "@earendil-works/pi-agent-core/conformance";
export declare class LifecycleRefusedError extends Error {
    readonly reason: string;
    constructor(kind: string, reason: string);
}
/**
 * One session's lifecycle on a split endpoint (design 5.6.6): an extension lifecycle handler (`agent_end`,
 * `turn_start`, ...) runs through the scope so its effect commits before the event is admitted, and every tool call
 * goes through `call`, so a call issued after the event runs only after that commit.
 */
export declare function createLifecycleBridge(options: {
    readonly scopes: ScopeLifecycle;
    readonly issuer: string;
    readonly scope: string;
}): {
    event: (kind: string, handler: () => Promise<unknown>) => Promise<number>;
    call: <T>(run: () => Promise<T>) => Promise<T>;
};
//# sourceMappingURL=lifecycle.d.ts.map