/**
 * @fileoverview Factory for the optional DataCanvas service. Switches on
 * `config.canvas.providerType`, fails closed in serverless for `duckdb`, and
 * returns `undefined` when canvas is disabled. The factory does not eager-load
 * `@duckdb/node-api`; the provider lazy-loads on first use.
 *
 * @module src/services/canvas/core/canvasFactory
 */
import type { AppConfig } from '../../../config/index.js';
import { DataCanvas } from './DataCanvas.js';
/**
 * Construct the canvas service from configuration. Returns `undefined` when
 * canvas is disabled. Fails closed with `ConfigurationError` in serverless
 * environments when `CANVAS_PROVIDER_TYPE=duckdb` — DuckDB has no V8-isolate
 * build, so canvas is unavailable on Workers.
 */
export declare function createCanvasService(config: AppConfig): DataCanvas | undefined;
//# sourceMappingURL=canvasFactory.d.ts.map