import { type State as ApiClientState } from '../state/api-client/state'; import { type File, type GlobalElement, type LocalizedGlobalElement, type PagePathnameSlice, type Swatch, type Table, type Typography, type HttpFetch } from './types'; import { ApiResourcesClient } from './api-resources-client'; import { type SiteVersion } from './site-version'; /** * Server-side implementation that makes direct authenticated requests to the Makeswift API. * Requires an API key. * * For client-side usage, see `HostApiResourcesClient`, which goes through the host via * `/api/makeswift/...` endpoints. */ export declare class MakeswiftApiResourcesClient extends ApiResourcesClient { private restApiClient; private graphQlClient; constructor({ fetch, apiKey, apiOrigin, graphqlApiEndpoint, preloadedState, }: { fetch: HttpFetch; apiKey: string; apiOrigin: string; graphqlApiEndpoint: string; preloadedState: Partial; }); protected fetchSwatchImpl(id: string, version: SiteVersion | null): Promise; protected fetchFileImpl(id: string, _version: SiteVersion | null): Promise; protected fetchTypographyImpl(id: string, version: SiteVersion | null): Promise; protected fetchGlobalElementImpl(id: string, version: SiteVersion | null): Promise; protected fetchLocalizedGlobalElementImpl(id: string, version: SiteVersion | null, locale: string): Promise; protected fetchPagePathnameSliceImpl(id: string, version: SiteVersion | null, locale: string | null | undefined): Promise; protected fetchTableImpl(id: string, _version: SiteVersion | null): Promise; } //# sourceMappingURL=makeswift-api-resources-client.d.ts.map