import "./shutdown-lifecycle.js"; export type ProxyShutdownHook = () => void | PromiseLike; export type RegisterProxyShutdownHook = (hook: ProxyShutdownHook) => () => void; export interface ProxyShutdownHooks { register: RegisterProxyShutdownHook; settle: () => Promise; settleOrThrow: () => Promise; } /** Build an aggregate without consulting mutable Array iterator prototypes. */ export declare function createProxyShutdownAggregateError(failures: readonly unknown[], message: string): AggregateError; /** * Coordinate owner-provided teardown without coupling the proxy runtime to a * concrete extension implementation. */ export declare function createProxyShutdownHooks(): ProxyShutdownHooks; export declare const registerProxyShutdownHook: RegisterProxyShutdownHook; export declare const settleProxyShutdownHooks: () => Promise; export declare const settleProxyShutdownHooksOrThrow: () => Promise; //# sourceMappingURL=shutdown-hooks.d.ts.map