import { type LoadingState } from '@scalar/components/loading'; import type { ExternalUrls } from '@scalar/types/api-reference'; import type { WorkspaceStore } from '@scalar/workspace-store/client'; import { type ComputedRef, type MaybeRefOrGetter } from 'vue'; type RegisterLinkOptions = { externalUrls: MaybeRefOrGetter; url: MaybeRefOrGetter; workspace: MaybeRefOrGetter; }; /** Builds the dashboard register link; string concatenation keeps a path prefix on a custom dashboardUrl */ export declare const createRegisterUrl: (dashboardUrl: string, documentUrl: string, params?: Record) => string; /** * Resolves the dashboard register link for the active document. * * A public document URL can be linked to directly. Inline documents and local URLs (which the * dashboard could never fetch) are uploaded as a temporary copy first, and that copy is reused * for every later click within the session. */ export declare const useRegisterLink: ({ externalUrls, url, workspace, }: RegisterLinkOptions) => { loader: LoadingState; /** Defined when no upload is needed, so the call to action can be a real */ href: ComputedRef; /** Resolves (uploading if needed) and opens the register page in a new tab */ open: (params?: Record) => Promise; }; export {}; //# sourceMappingURL=use-register-link.d.ts.map