interface CreateTextStyleOptions { fontSize?: number; fontFamily?: string; color?: string; } /** * Renders text or emoji to an offscreen HTMLCanvasElement for use as a ParticleStyle. * The returned canvas can be passed directly in the `styles` array of any confetti component * and can be mixed with color strings. Particle dimensions are automatically sized to match * the canvas dimensions — no `onCreate` callback is needed for sizing. * * @param text - Text or emoji to render. * @param options - Optional font and color configuration. * @param options.fontSize [24] - Font size in pixels. * @param options.fontFamily ['sans-serif'] - Font family for text rendering. * @param options.color [undefined] - Fill color for text characters. Defaults to black when omitted. Emoji use their native colors regardless of this value. * @returns An HTMLCanvasElement containing the rendered text. */ declare function createTextStyle(text: string, options?: CreateTextStyleOptions): HTMLCanvasElement; export type { CreateTextStyleOptions }; export { createTextStyle }; //# sourceMappingURL=create-text-style.d.ts.map