import { WeavyClient } from './weavy'; import { Constructor } from '../types/generic.types'; export interface WeavyVersionProps { readonly version: string; checkVersion: () => Promise; } export type WeavyVersionType = { /** The level of possible semver mismatch */ mismatch?: "major" | "minor" | "patch"; /** Information about the UI kit version */ client: { /** Package name */ name: string; /** Semver version */ version: string; }; /** Information about the Weavy environment version */ environment: { /** The hostname of the Weavy environment */ name: string; /** Semver version */ version: string | undefined; }; }; export declare const WeavyVersionMixin: >(Base: TBase) => { new (...args: any[]): { /** * The semver version of the package. */ readonly version: string; _whenCheckVersion?: Promise; /** * Checks the version of the Weavy Context against the Weavy Environment version. * * The environment version is read from the anonymous `/ready` endpoint, which returns * `{ "node_id": "...", "version": "33.0.0", "status": "healthy" }` with status 200 when the node is ready, * and the same body with status 503 when it is not. The version is read from both, but the server is only * considered reachable on 200 since every other request to an unhealthy node is also answered with 503. */ checkVersion(this: /*elided*/ any & WeavyClient & import('./weavy').StrictWeavyOptions & import('./settings').WeavySettingsProps & import('./network').WeavyNetworkProps & import('./authentication').WeavyAuthenticationProps & import('./localization').WeavyLocalizationProps & import('./connection').WeavyConnectionProps & import('./query').WeavyQueryProps & WeavyVersionProps & import('./fetch').WeavyFetchProps & import('./styles').WeavyStylesProps & import('./context').WeavyContextProviderProps & import('./links').WeavyLinksProps): Promise; readonly weavySid: string; readonly weavyId: string; readonly host: HTMLElement; cloudFilePickerUrl: string | URL; configurationTimeout: number; disableEnvironmentImports: boolean; gcTime: number; scrollBehavior: "auto" | "instant" | "smooth"; staleTime: number; tokenFactoryRetryDelay: number; tokenFactoryTimeout: number; _resolveUrl?: (url: URL) => void; _whenUrl: Promise; whenUrl(): Promise; _url?: URL; get url(): URL | undefined; set url(url: string | URL | null | undefined); get cachePrefix(): string; reset(): Promise; _isDestroyed: boolean; get isDestroyed(): boolean; destroy(): void; }; } & TBase; //# sourceMappingURL=version.d.ts.map