//#region src/inspector/entity-tab.logic.d.ts /** * Pure activation/close-gesture policy for `InspectorEntityTab`, kept out * of the component so it's unit-testable without a DOM: each function * takes only the plain values a `MouseEvent` carries (or the host's * optional callbacks), never the event object itself. */ /** Whether a mouse button number is the tab's "close" gesture * (middle-click). */ export declare const isEntityTabCloseGesture: (button: number) => boolean; /** * Resolves what an `onAuxClick` with this `button` should do: close the * tab (the given `onClose`) when the gesture matches and the host * supplied one, or nothing (`undefined`) otherwise. Returning `undefined` * for "do nothing" (rather than a boolean) lets the component skip * `preventDefault()` too when there's truly nothing to do, leaving the * browser's own middle-click behavior alone. */ export declare const resolveEntityTabCloseHandler: (button: number, onClose: (() => void) | undefined) => (() => void) | undefined; /** * Resolves the tab's click/activation handler: `onSelect` when the host * supplied one, a stable no-op otherwise, so the component always has a * callable handler to hand to `containedEventHandler` regardless of * whether the host cares about selection. */ export declare const resolveEntityTabActivateHandler: (onSelect: (() => void) | undefined) => (() => void); //#endregion