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