import { z } from 'zod'; import { type File, type Table } from '../api/types'; import { MakeswiftRestAPIClient } from '../api/rest-api-client'; import { type SiteVersion } from '../api/site-version'; import { type ReactRuntimeCore } from '../runtimes/react/react-runtime-core'; import { type Element, type ElementData, type Data } from '../state/read-only-state'; import { type MakeswiftComponentSnapshot } from './component-snapshot'; import { type MakeswiftPageSnapshot } from './page-snapshot'; import * as Schema from './schema'; export { SnippetLocation } from '../api/graphql/generated/types'; export { type MakeswiftComponentDocument, type MakeswiftComponentDocumentFallback, type MakeswiftComponentSnapshot, type MakeswiftComponentMetadata as MakeswiftComponentSnapshotMetadata, componentDocumentToRootEmbeddedDocument, } from './component-snapshot'; export { type Snippet, type Font, type MakeswiftPageDocument, type MakeswiftPageSnapshot, pageToRootDocument, } from './page-snapshot'; export type Sitemap = { id: string; loc: string; lastmod?: string; changefreq?: 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'; priority?: number; alternateRefs?: { hreflang: string; href: string; }[]; }[]; export type MakeswiftPage = z.infer; export type MakeswiftGetPagesResult = z.infer; export type PreviewTokenPayload = z.infer; export type GetFontsAPI = z.infer; type GetPageResult = z.infer; export declare class MakeswiftClient extends MakeswiftRestAPIClient { private graphqlClient; private runtime; constructor(apiKey: string, { runtime, }: { runtime: ReactRuntimeCore; }); private getPagesInternal; getPages: (options?: ({ siteVersion?: SiteVersion | null; } & { limit?: number | undefined; after?: string | undefined; sortBy?: "path" | "title" | "description" | "createdAt" | "updatedAt" | undefined; sortDirection?: "desc" | "asc" | undefined; includeOffline?: boolean | undefined; pathPrefix?: string | undefined; locale?: string | undefined; }) | undefined) => Promise<{ data: { path: string; id: string; locale: string; title: string | null; description: string | null; canonicalUrl: string | null; socialImageUrl: string | null; sitemapPriority: number | null; sitemapFrequency: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | null; createdAt: string; updatedAt: string; publishedAt: string | null; isOnline: boolean | null; excludedFromSearch: boolean | null; localizedVariants: { path: string; locale: string; }[]; }[]; hasMore: boolean; }> & import("../utils/async-iterable").AsyncIterableExt<{ path: string; id: string; locale: string; title: string | null; description: string | null; canonicalUrl: string | null; socialImageUrl: string | null; sitemapPriority: number | null; sitemapFrequency: "never" | "always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | null; createdAt: string; updatedAt: string; publishedAt: string | null; isOnline: boolean | null; excludedFromSearch: boolean | null; localizedVariants: { path: string; locale: string; }[]; }>; getPage(pathname: string, { siteVersion, locale }?: { siteVersion?: SiteVersion | null; locale?: string; }): Promise; private getTypographies; private getSwatches; private getElementTreesBulk; private getIntrospectedResources; private introspect; private introspectMany; getPageSnapshot(pathname: string, { siteVersion: siteVersionPromise, locale, allowLocaleFallback, }: { siteVersion: SiteVersion | null | Promise; locale?: string; allowLocaleFallback?: boolean; }): Promise; getComponentSnapshot(id: string, { siteVersion: siteVersionPromise, locale, allowLocaleFallback, unstable_enforceSuccess, }: { siteVersion: SiteVersion | null | Promise; locale?: string; allowLocaleFallback?: boolean; unstable_enforceSuccess?: boolean; }): Promise; /** * Fetches multiple component snapshots in a single bulk request with unified introspection. * * @param ids - Element tree IDs to fetch. Maximum 100 IDs per call. */ unstable_getComponentSnapshots(ids: string[], { siteVersion: siteVersionPromise, locale, allowLocaleFallback, }: { siteVersion: SiteVersion | null | Promise; locale?: string; allowLocaleFallback?: boolean; }): Promise; getFile(fileId: string): Promise; getTable(tableId: string): Promise; getTranslatableData(elementTree: ElementData): Record; mergeTranslatedData(elementTree: ElementData, translatedData: Record): Element; readPreviewToken(token: string): Promise; unstable_getFonts(siteVersion?: SiteVersion | null): Promise; private getElementDescriptors; } //# sourceMappingURL=index.d.ts.map