/** * Configuration for well-known Strapi resources that have special API contracts. */ export interface WellKnownResourceConfig { /** * Plugin configuration for the resource. */ plugin: { /** * Name of the plugin that owns this resource. */ name: string; /** * Route prefix for the plugin. * Empty string means no prefix is used. */ prefix: string; }; /** * Whether this resource type wraps request payloads in a "data" object. * Regular Strapi content-types wrap data: { data: {...} } * Some plugins (like users-permissions) expect unwrapped data: {...} */ wrapsData: boolean; } /** * Checks if a resource should wrap data in a "data" object based on its plugin. * * @param pluginName - The name of the plugin, if any * @returns true if data should be wrapped, false otherwise */ export declare function shouldWrapData(pluginName: string | undefined): boolean;