You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.8 KiB

import { RawExpoModuleConfig, SupportedPlatform } from './types';
/**
* A class that wraps the raw config (`expo-module.json` or `unimodule.json`).
*/
export declare class ExpoModuleConfig {
readonly rawConfig: RawExpoModuleConfig;
constructor(rawConfig: RawExpoModuleConfig);
/**
* Whether the module supports given platform.
*/
supportsPlatform(platform: SupportedPlatform): boolean;
/**
* Returns a list of names of Swift native modules classes to put to the generated modules provider file.
*/
iosModules(): string[];
/**
* Returns a list of names of Swift classes that receives AppDelegate life-cycle events.
*/
iosAppDelegateSubscribers(): string[];
/**
* Returns a list of names of Swift classes that implement `ExpoReactDelegateHandler`.
*/
iosReactDelegateHandlers(): string[];
/**
* Returns podspec paths defined by the module author.
*/
iosPodspecPaths(): string[];
/**
* Returns the product module names, if defined by the module author.
*/
iosSwiftModuleNames(): string[];
/**
* Returns whether this module will be added only to the debug configuration
*/
iosDebugOnly(): boolean;
/**
* Returns a list of names of Kotlin native modules classes to put to the generated package provider file.
*/
androidModules(): string[];
/**
* Returns build.gradle file paths defined by the module author.
*/
androidGradlePaths(): string[];
/**
* Returns serializable raw config.
*/
toJSON(): RawExpoModuleConfig;
}
/**
* Reads the config at given path and returns the config wrapped by `ExpoModuleConfig` class.
*/
export declare function requireAndResolveExpoModuleConfig(path: string): ExpoModuleConfig;