@imgly/plugin-ai-generation-web
Version:
AI generation plugin for the CE.SDK editor
17 lines (16 loc) • 756 B
TypeScript
import type { PropertyConfig, PropertyContext } from '../core/propertyConfiguration';
/**
* Resolve the default value for a property
* @template T - The property value type
* @template C - The context type
*/
export declare function resolvePropertyDefault<T, C extends PropertyContext = PropertyContext>(propertyId: string, propertyConfig: PropertyConfig<T, C> | undefined, context: C, schemaDefault?: T, fallback?: T): T | undefined;
/**
* Batch resolve multiple property defaults
*/
export declare function resolvePropertyDefaults<I, C extends PropertyContext = PropertyContext>(properties: Array<{
id: keyof I;
config?: PropertyConfig<I[keyof I], C>;
schemaDefault?: I[keyof I];
fallback?: I[keyof I];
}>, context: C): Partial<I>;