import { CanvasClient, RouteClient, ResolvedRouteGetResponse, CompositionGetBySlugParameters, RouteGetParameters } from '@uniformdev/canvas'; import { UniformServerConfig, CompositionContext, AppDirectoryContextState, AppDirectoryServerContext, PlaygroundParameters, AwaitedPageParameters, PageParameters } from '@uniformdev/canvas-next-rsc-shared'; export { PageParameters, PlaygroundParameters } from '@uniformdev/canvas-next-rsc-shared'; import { ManifestClient } from '@uniformdev/context/api'; import { ProjectMapClient, ProjectMapNode } from '@uniformdev/project-map'; import { ContextState, ContextOptions } from '@uniformdev/context'; import React, { PropsWithChildren } from 'react'; import { U as UniformCompositionProps } from './UniformComposition-CfpHU4f0.js'; export { b as UniformComposition, r as resolveComposition } from './UniformComposition-CfpHU4f0.js'; import { ClientContextComponent } from '@uniformdev/canvas-next-rsc-client'; type GetCanvasClientOptions = { cache: NonNullable; }; declare const getCanvasClient: (options: GetCanvasClientOptions) => CanvasClient; declare const getDefaultCanvasClient: (options: Pick) => Promise; type GetManifestClientOptions = { cache: NonNullable; }; declare const getManifestClient: (options: GetManifestClientOptions) => ManifestClient; declare const getDefaultManifestClient: (options: Pick) => Promise; declare const getManifest: (options: Pick) => Promise<{ project: { id?: string; name?: string; ui_version?: number; pz?: { sig?: { [key: string]: { str: number; cap: number; dur: "s" | "p" | "t"; crit: { type: "G"; op?: "&" | "|"; clauses: ({ type: "G"; op?: "&" | "|"; clauses: (/*elided*/ any | ({ type: "CK"; cookieName: string; match: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "QS"; queryName: string; match: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "QK"; key: string; match: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "EVT"; event: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "PV"; path: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "PVC"; match: { rhs: number; op: "=" | "<" | ">" | "!="; }; }))[]; } | ({ type: "CK"; cookieName: string; match: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "QS"; queryName: string; match: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "QK"; key: string; match: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "EVT"; event: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "PV"; path: { rhs: string; op: "=" | "~" | "//" | "!=" | "!~" | "!//"; cs?: boolean; } | { op: "*" | "!*"; }; } | { type: "PVC"; match: { rhs: number; op: "=" | "<" | ">" | "!="; }; }))[]; }; conversion?: { freq: "O"; } | null; }; }; enr?: { [key: string]: { cap: number; }; }; agg?: { [key: string]: { inputs: { dim: string; sign?: "+" | "-" | "c"; }[]; }; }; control?: number; }; test?: { [key: string]: { wv?: string; }; }; }; }>; type GetProjectMapClientOptions = { cache: NonNullable; }; declare const getProjectMapClient: (options: GetProjectMapClientOptions) => ProjectMapClient; declare const getDefaultProjectMapClient: (options: Pick) => Promise; type GetRouteClientOptions = { cache: NonNullable; }; declare const getRouteClient: (options: GetRouteClientOptions) => RouteClient; declare const getDefaultRouteClient: (options: Pick) => Promise; type ContextUpdateTransferProps = { update: Partial | (() => Promise | undefined>); serverContext: AppDirectoryServerContext | undefined; }; declare const ContextUpdateTransfer: React.FC; type CreateStaticParamsOptions = { expand?: (node: ProjectMapNode) => Promise | string[] | undefined; }; declare const createStaticParams: (options?: CreateStaticParamsOptions) => Promise<{ path: string[]; }[]>; declare function generateStaticParams(): Promise<{ path: string[]; }[]>; type UniformContextProps = { /** * Component to initialize Uniform context on the client. */ clientContextComponent?: ClientContextComponent; }; declare const UniformContext: React.FC>; type UniformPlaygroundProps = PlaygroundParameters & Omit; declare const UniformPlayground: React.FC; type CreateServerUniformContextProps = Omit & { searchParams: AwaitedPageParameters['searchParams']; }; declare const createServerUniformContext: (options: CreateServerUniformContextProps) => Promise; declare const isDraftModeEnabled: ({ searchParams, }: { searchParams: AwaitedPageParameters["searchParams"]; }) => Promise; declare const isIncontextEditingEnabled: ({ searchParams, }: { searchParams: { [key: string]: string | undefined; } | undefined; }) => boolean; declare const isOnVercelPreviewEnvironment: () => boolean; declare const isDevelopmentEnvironment: () => boolean; type RetrieveCommonOptions = { /** * If true, the manifest will not be prefetched. * * Prefetching allows the manifest to begin loading while the route data is being retrieved. */ skipPrefetch?: boolean; }; type RetrieveRouteOptions = PageParameters & RetrieveCommonOptions; type RetrieveSlugOptions = Pick & { /** * The searchParams object from Next.js router. Used for signal evaluation. */ searchParams?: { [key: string]: string | undefined; }; } & RetrieveCommonOptions; type RetrieveRouteFetchOptions = Omit; declare const retrieveCompositionBySlug: ({ slug, searchParams, skipPrefetch, locale, releaseId, versionId, }: RetrieveSlugOptions) => Promise; declare const retrieveRoute: ({ params, searchParams: providedSearchParams, skipPrefetch }: RetrieveRouteOptions, fetchOptions?: RetrieveRouteFetchOptions) => Promise; export { ContextUpdateTransfer, type ContextUpdateTransferProps, type CreateServerUniformContextProps, type CreateStaticParamsOptions, type GetCanvasClientOptions, type GetManifestClientOptions, type GetProjectMapClientOptions, type GetRouteClientOptions, UniformCompositionProps, UniformContext, type UniformContextProps, UniformPlayground, type UniformPlaygroundProps, createServerUniformContext, createStaticParams, generateStaticParams, getCanvasClient, getDefaultCanvasClient, getDefaultManifestClient, getDefaultProjectMapClient, getDefaultRouteClient, getManifest, getManifestClient, getProjectMapClient, getRouteClient, isDevelopmentEnvironment, isDraftModeEnabled, isIncontextEditingEnabled, isOnVercelPreviewEnvironment, retrieveCompositionBySlug, retrieveRoute };