import { PreviewInstance, PreviewOptions } from './types'; /** * Create a watermarked shader preview from a preview token or preset ID. * Fetches the encoded (and server-watermarked) definition from the API, * decodes it, renders it to the canvas, and adds a DOM watermark overlay. * * @example * ```ts * const preview = await createPreview(canvas, { * presetId: 'abc123', * configuration: { primaryColor: '#ff0000', intensity: 0.5 } * }) * * // Update configuration at runtime (no refetch) * preview.setConfiguration({ primaryColor: '#00ff00', intensity: 0.8 }) * * // Cleanup * preview.destroy() * ``` */ export declare function createPreview(canvas: HTMLCanvasElement, options: PreviewOptions): Promise; //# sourceMappingURL=createPreview.d.ts.map