import '@shopify/shopify-api/adapters/node'; import { ConfigParams as ApiConfigParams, Shopify, ShopifyRestResources, Session } from '@shopify/shopify-api'; import { MemorySessionStorage } from '@shopify/shopify-app-session-storage-memory'; import { AppConfigInterface, AppConfigParams } from './config-types'; import { AuthMiddleware } from './auth/types'; import { ProcessWebhooksMiddleware } from './webhooks/types'; import { ValidateAuthenticatedSessionMiddleware, CspHeadersMiddleware, EnsureInstalledMiddleware, RedirectToShopifyOrAppRootMiddleware } from './middlewares/types'; import { RedirectOutOfAppFunction } from './types'; export * from './types'; export * from './auth/types'; export * from './middlewares/types'; export * from './webhooks/types'; export type { AppConfigParams, ExpressApiConfigParams, FutureFlags, } from './config-types'; export { ApiVersion } from '@shopify/shopify-api'; type DefaultedConfigs | undefined> = ApiConfigParams & Params; type ConfigInterfaceFromParams> = AppConfigInterface['restResources']> : ShopifyRestResources, Params['sessionStorage'] extends undefined ? MemorySessionStorage : NonNullable>; export interface ShopifyApp { config: ConfigInterfaceFromParams; api: Shopify, DefaultedConfigs['restResources'] & ShopifyRestResources>; auth: AuthMiddleware; processWebhooks: ProcessWebhooksMiddleware; validateAuthenticatedSession: ValidateAuthenticatedSessionMiddleware; cspHeaders: CspHeadersMiddleware; ensureInstalledOnShop: EnsureInstalledMiddleware; redirectToShopifyOrAppRoot: RedirectToShopifyOrAppRootMiddleware; redirectOutOfApp: RedirectOutOfAppFunction; ensureValidOfflineSession: (shop: string) => Promise; registerWebhooks: (params: { session: Session; }) => Promise; } export declare function shopifyApp(config: Params): ShopifyApp; //# sourceMappingURL=index.d.ts.map