import { $Fetch } from 'ofetch'; import { IDefaultServerResolution, IMt5ServerCatalogEntry } from './mt5.type'; export interface IMt5ServiceOptions { /** The CMS `$Fetch` instance (one of `sdk.apis`). */ api: $Fetch; } export interface IMt5Service { /** * Public MT5 server catalog (eaera-mt5 DR-27) — anonymous-safe. Never * read the admin-only `Mt5Server` content type instead. */ getServers(): Promise; /** * Anonymous default server: the `setting.public.markets` `defaultServer` * id matched against the catalog, else the first catalog row, else the * caller's env fallback (`usedFallback: true`). */ resolveDefaultServer(servers: readonly IMt5ServerCatalogEntry[], settingId: string | null | undefined, fallbackName: string | null): IDefaultServerResolution; } /** * MT5 public projections. Like the gov/people services this never mocks — * the endpoint is anonymous and live in every environment the SDK runs in. */ export declare function createMt5Service(opts: IMt5ServiceOptions): IMt5Service; export { matchServerBySettingId, parseServerCatalog, resolveDefaultServerName } from './catalog'; export type { IDefaultServerResolution, IMt5ServerCatalogEntry, IMt5ServerCatalogResponse, } from './mt5.type'; //# sourceMappingURL=index.d.ts.map