interface IncludeOnlyResult { include: string[] | null; only: Record | null; } /** * Represents a warning about a missing or failed template expression */ interface ResolutionWarning { expression: string; reason: 'missing_value' | 'evaluation_error'; placeholder: string; } /** * Reason types explained: * - 'missing_value': The field exists in the entry but has no value (null/undefined/empty string) * - 'evaluation_error': The expression itself is invalid or the field path doesn't exist */ /** * Result of URL pattern resolution including warnings */ interface ResolutionResult { url: string; warnings: ResolutionWarning[]; hasMissingValues: boolean; } /** * Generates include and only parameters for API calls based on URL pattern * @param pattern - The URL pattern containing template expressions * @param contentTypes - Array of content type definitions * @param rootTypeUid - The root content type UID * @returns Object containing include and only parameters for API optimization */ declare function generateIncludeOnlyFromPattern(pattern: string, contentTypes: any[], rootTypeUid: string): IncludeOnlyResult; declare function buildQueryString({ include, only }: { include: string[] | null; only: Record | null; }): string; declare function buildAxiosParams({ include, only }: { include: string[] | null; only: Record | null; }): Record; /** * Resolves URL patterns by replacing template expressions with actual values * @param hostPattern - The host pattern template (e.g., "https://{{environment}}.example.com") * @param urlPattern - The URL path pattern template (e.g., "/{{entry.slug}}") * @param entry - The entry data to use for template resolution * @param additionalContext - Additional context variables for template resolution * @param advancedConfig - JSON string or object containing operations configuration * @returns ResolutionResult containing the resolved URL and any warnings */ declare function resolveUrlPattern(hostPattern: string | undefined, urlPattern: string | undefined, entry: any, additionalContext?: Record, advancedConfig?: string | any): ResolutionResult; export { resolveUrlPattern, generateIncludeOnlyFromPattern, buildQueryString, buildAxiosParams }; export type { ResolutionResult, ResolutionWarning, IncludeOnlyResult };