import { VendureConfig } from '../' import { OperationContext } from '@commerce/api/operations' import { Provider } from '../../../bigcommerce/api' export type Page = any export type GetAllPagesResult< T extends { pages: any[] } = { pages: Page[] } > = T export default function getAllPagesOperation({ commerce, }: OperationContext) { async function getAllPages(opts?: { config?: Partial preview?: boolean }): Promise async function getAllPages(opts: { url: string config?: Partial preview?: boolean }): Promise> async function getAllPages({ config: cfg, preview, }: { url?: string config?: Partial preview?: boolean } = {}): Promise { const config = commerce.getConfig(cfg) return { pages: [], } } return getAllPages }