import { type GlobalElement, type LocalizedGlobalElement, type PagePathnameSlice, type Swatch, type Typography, type HttpFetch } from './types'; import { type SiteVersion } from './site-version'; export declare class MakeswiftRestAPIClient { private _fetch; readonly apiKey: string; readonly apiOrigin: string; constructor({ fetch, apiKey, apiOrigin, }: { fetch: HttpFetch; apiKey: string; apiOrigin: string; }); getSwatch(swatchId: string, siteVersion: SiteVersion | null): Promise; getTypography(typographyId: string, siteVersion: SiteVersion | null): Promise; getGlobalElement(globalElementId: string, siteVersion: SiteVersion | null): Promise; getLocalizedGlobalElement(globalElementId: string, locale: string, siteVersion: SiteVersion | null): Promise; getPagePathnameSlices(pageIds: string[], siteVersion: SiteVersion | null, { locale }: { locale?: string | null; }): Promise<(PagePathnameSlice | null)[]>; getPagePathnameSlice(pageId: string, siteVersion: SiteVersion | null, { locale }?: { locale?: string | null; }): Promise; protected fetch(path: string, siteVersion: SiteVersion | null, init?: RequestInit): Promise; } export declare function failedResponseBody(response: Response): Promise; export declare class RestApiClientError extends Error { readonly status: number; constructor(message: string, response: Response, cause: Record); } //# sourceMappingURL=rest-api-client.d.ts.map