import type { Route } from '../types.js'; import { type IOptiGraphClient as GraphQLClient } from '../../../client/types.js'; export interface OptimizelyCmsRoutingApi { enablePreview(changeset?: string): void; disablePreview(): void; getRoutes(client: GraphQLClient, siteId?: string, onlyWithDomain?: boolean): Promise; getRouteByPath(client: GraphQLClient, path: string, siteId?: string): Promise; getRouteById(client: GraphQLClient, contentId: string, locale?: string, version?: string | number): Promise; } export type OptimizelyCmsRoutingApiClass = { new (): OptimizelyCmsRoutingApi; };