/**
 * Re-fit the React Flow viewport when the active workspace's visible node
 * set changes (switching workspaces, or changing the active workspace's
 * membership via the Manage dialog).
 *
 * Intentionally scoped:
 * - Skips the first run so we don't override the persisted viewport on mount.
 * - Skips the default workspace, which shows everything and owns the
 *   persisted viewport via useViewportPersistence.
 * - Skips empty workspaces — there's nothing to fit.
 * - Defers fitView to the next tick so React Flow has committed the new
 *   node set before measuring.
 */
import type { useReactFlow } from '@xyflow/react';
import type { CanvasNodeType } from '../../features/features-canvas/index.js';
type FitViewFn = ReturnType<typeof useReactFlow>['fitView'];
interface ActiveWorkspaceLike {
    id: string;
}
export declare function useWorkspaceFitView(params: {
    activeWorkspace: ActiveWorkspaceLike;
    isDefaultActive: boolean;
    workspaceFilteredNodes: CanvasNodeType[];
    fitView: FitViewFn;
}): void;
export {};
//# sourceMappingURL=use-workspace-fit-view.d.ts.map