UNPKG

@combine-labs/combine-polaris

Version:

Combine Lab's product component library. Forked from Shopify's Polaris.

8 lines (7 loc) 1.04 kB
import * as React from 'react'; import { TranslationDictionary, PrimitiveReplacementDictionary, ComplexReplacementDictionary, WithAppProviderProps, CreatePolarisContext } from '../types'; import { Context } from '../AppProvider'; export declare function translate(id: string, translations: TranslationDictionary | TranslationDictionary[] | undefined, replacements?: PrimitiveReplacementDictionary | ComplexReplacementDictionary): string; export declare function withAppProvider<OwnProps>(): <C>(WrappedComponent: (React.ComponentClass<OwnProps & WithAppProviderProps> & C) | (React.StatelessComponent<OwnProps & WithAppProviderProps> & C)) => React.ComponentClass<OwnProps> & C; export declare function withSticky(): <OwnProps, C>(WrappedComponent: (React.ComponentClass<OwnProps & WithAppProviderProps> & C) | (React.StatelessComponent<OwnProps & WithAppProviderProps> & C)) => any; export declare function createPolarisContext({ i18n, linkComponent, apiKey, shopOrigin, forceRedirect, debug, stickyManager, }?: CreatePolarisContext): Context;