UNPKG

877 BTypeScriptView Raw
1import type { Config, OutputTargetCustom } from '@stencil/core/internal';
2import type { OutputTargetReact } from './types';
3/**
4 * Creates an output target for binding Stencil components to be used in a React context
5 * @param outputTarget the user-defined output target defined in a Stencil configuration file
6 * @returns an output target that can be used by the Stencil compiler
7 */
8export declare const reactOutputTarget: (outputTarget: OutputTargetReact) => OutputTargetCustom;
9/**
10 * Normalizes the structure of a provided output target and verifies a Stencil configuration
11 * associated with the wrapper is valid
12 * @param config the configuration to validate
13 * @param outputTarget the output target to normalize
14 * @returns an output target that's been normalized
15 */
16export declare function normalizeOutputTarget(config: Config, outputTarget: any): OutputTargetReact;