import React from "react"; import { EntityCollection } from "@firecms/core"; import { ProjectsApi } from "../api/projects"; export type PermissionErrorViewProps = { path: string; collection: EntityCollection; parentCollectionIds?: string[]; error: Error; projectId: string; projectsApi: ProjectsApi; onAnalyticsEvent?: (event: string, data?: object) => void; }; /** * Custom error view for the SaaS plugin that detects "Missing or insufficient permissions" * and provides actionable CTAs to fix it. * * For non-permission errors, returns null to fall back to the default error view. */ export declare function PermissionErrorView({ path, collection, error, projectId, projectsApi, onAnalyticsEvent, }: PermissionErrorViewProps): React.JSX.Element | null;