import { ReactElement, PropsWithChildren } from 'react'; interface ZodSchema { parse: (data: unknown) => unknown; safeParse: (data: unknown) => { success: boolean; data?: unknown; error?: unknown; }; } export interface RestrictedGrafanaApisContextTypeInternal { alertingAlertRuleFormSchema?: ZodSchema; } type RequireAllPropertiesOptional = keyof T extends never ? T : { [K in keyof T]-?: undefined extends T[K] ? never : K; }[keyof T] extends never ? T : 'Error: all properties of `RestrictedGrafanaApisContextTypeInternal` must be marked as optional, as their availability is controlled via a configuration parameter. Please have a look at `RestrictedGrafanaApisContextTypeInternal`.'; export type RestrictedGrafanaApisContextType = RequireAllPropertiesOptional; export type RestrictedGrafanaApisAllowList = Partial>>; export declare const RestrictedGrafanaApisContext: import("react").Context; export type Props = { pluginId: string; apis: RestrictedGrafanaApisContextType; apiAllowList?: RestrictedGrafanaApisAllowList; apiBlockList?: RestrictedGrafanaApisAllowList; }; export declare function RestrictedGrafanaApisContextProvider(props: PropsWithChildren): ReactElement; export declare function useRestrictedGrafanaApis(): RestrictedGrafanaApisContextType; export {};