smartshopping-sdk
Version:
Coupon autoapply SDK
23 lines (22 loc) • 798 B
TypeScript
import { EngineConfig, AdblockAndCookieOutput } from '../interfaces';
type BootstrapProps = {
clientID: string;
key: string;
configs: Array<EngineConfig>;
promocodes: {
[key: string]: Array<string>;
};
defaultConfigs: Array<EngineConfig>;
defaultPromocodes: {
[key: string]: Array<string>;
};
};
type BootstrapOutput = {
install: () => Promise<void>;
startEngine: (tabId: number) => Promise<void>;
setCodes: (tabId: number, codes: Array<string>) => void;
startEngineDev: (tabId: number) => Promise<void>;
checkAdblockAndCookie: () => Promise<AdblockAndCookieOutput>;
};
declare const bootstrap: ({ clientID, key, configs, promocodes, defaultConfigs, defaultPromocodes, }: BootstrapProps) => BootstrapOutput;
export { bootstrap };