///
type ContentTypeBuilderPluginApi = {
apis?: {
forms?: {
components?: {
add: (args: {
id: string;
component: React.ComponentType;
}) => void;
};
};
};
};
type StrapiAdminApp = {
getPlugin?: (pluginId: string) => ContentTypeBuilderPluginApi | undefined;
customFields: {
register: (args: {
name: string;
pluginId: string;
type: string;
intlLabel: {
id: string;
defaultMessage: string;
};
intlDescription: {
id: string;
defaultMessage: string;
};
icon: unknown;
components: {
Input: () => Promise;
};
options: unknown;
}) => void;
};
addMenuLink: (args: {
to: string;
icon: React.ComponentType;
intlLabel: {
id: string;
defaultMessage: string;
};
Component: () => Promise;
}) => void;
registerPlugin: (args: {
id: string;
initializer: React.ComponentType<{
setPlugin: (id: string) => void;
}>;
isReady: boolean;
name: string;
}) => void;
};
declare const _default: {
register(app: StrapiAdminApp): void;
registerTrads({ locales }: {
locales: string[];
}): Promise<{
data: any;
locale: string;
}[]>;
};
export default _default;