import { type OpenAPIV3 } from 'openapi-types'; import CreativeEditorSDK, { CreativeEngine } from '@cesdk/cesdk-js'; import { RenderCustomProperty, Middleware } from '@imgly/plugin-ai-generation-web'; import { StickerQuickActionSupportMap } from '../types'; type StickerProviderConfiguration = { proxyUrl: string; debug?: boolean; middlewares?: Middleware[]; /** * @deprecated Use `middlewares` instead. */ middleware?: Middleware[]; /** * Override provider's default history asset source */ history?: false | '@imgly/local' | '@imgly/indexedDB' | (string & {}); /** * Configure supported quick actions */ supportedQuickActions?: { [quickActionId: string]: Partial[string]> | false | null; }; }; /** * Creates a base provider from schema. This should work out of the box * but may be rough around the edges and should/can be further customized. */ declare function createStickerProvider>(options: { falKey: string; modelKey: string; name?: string; schema: OpenAPIV3.Document; inputReference: string; userFlow?: 'placeholder' | 'generation-only'; initialize?: (context: { cesdk?: CreativeEditorSDK; engine: CreativeEngine; }) => void; renderCustomProperty?: RenderCustomProperty; supportedQuickActions?: StickerQuickActionSupportMap; getBlockInput?: any; getStickerSize?: (input: I) => { width: number; height: number; }; middleware?: any[]; headers?: Record; cesdk?: CreativeEditorSDK; }, config: StickerProviderConfiguration): any; export default createStickerProvider;