export function createGlobalHandlerSlot(fallback) {
    let handler = null;
    return {
        set(next) {
            handler = next;
        },
        async signal(input) {
            if (!handler) {
                return fallback(input);
            }
            return handler(input);
        },
    };
}
//# sourceMappingURL=global-handler-slot.js.map