import { ReactNode } from "react"; import { usePermissions } from "@/hooks/use-permissions"; export interface PageAction { icon: ReactNode; label: string; onClick: () => void; disabled?: boolean; className?: string; permissionCheck?: (permissions: ReturnType) => boolean; } export interface EmptyAction { empty: true; } export declare const EMPTY_ACTION: EmptyAction; export declare function usePage) => boolean; }[]>(config: { title: string; defaultTab?: T[number]["value"]; tabs: T; actions: { [K in T[number]["value"]]: PageAction | EmptyAction; }; content: { [K in T[number]["value"]]: ReactNode; }; customContent?: { [K in T[number]["value"]]?: ReactNode; }; persistTabs?: boolean; }): { page: any; currentTab: any; setCurrentTab: (tabValue: string) => void; };