import { WeavyClient } from './weavy'; import { Constructor } from '../types/generic.types'; import { LinkType } from '../types/app.types'; export interface WeavyLinksProps { /** * Storage for sharing data */ storage?: Storage; /** * Provide a link for any matching component, via `wy-link` event or via storage. * @param link - The link data to provide */ setLink: (link: LinkType) => boolean; /** * Reads a link from storage and exposes it via the link property and context. * */ readStorageLink: () => LinkType | undefined; /** * Shares a link with other blocks that may consume it automatically in other tabs or windows or when reloading the page. * * @param link - The entity to provide. */ provideStorageLink: (link: LinkType) => void; /** * Consumes a link in storage. Make sure to consume it after it has been used. */ consumeStorageLink: () => void; } export declare const WeavyLinksMixin: >(Base: TBase) => { new (...args: any[]): { storage: Storage | undefined; setLink(link: LinkType): boolean; provideStorageLink(link: LinkType): void; readStorageLink(): LinkType | undefined; /** * Consumes a link in storage. Make sure to consume it after it has been used. * * @internal */ consumeStorageLink(): void; 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=links.d.ts.map