import { a as AstroClerkIntegrationParams } from '../types-BIfr593P.js'; import * as astro_transitions_client from 'astro:transitions/client'; import '@clerk/shared/types'; import '@clerk/shared/ui'; import '@clerk/ui/internal'; /** * Generates a safe, URL-friendly unique identifier. * * @example * const id = generateSafeId(); * console.log(id); // Outputs something like: "f3x2P9Xn1K" */ declare const generateSafeId: (defaultSize?: number) => string; type SwapFunctions = typeof astro_transitions_client.swapFunctions; /** * @internal * Custom swap function to make mounting and styling * of Clerk components work with View Transitions in Astro. * * See https://docs.astro.build/en/guides/view-transitions/#building-a-custom-swap-function */ declare function swapDocument(swapFunctions: SwapFunctions, doc: Document): void; /** * The following code will be used in order to be injected as script via the astro integration. * F.e. * * injectScript('before-hydration', `...`) */ declare const runInjectionScript: (astroClerkOptions?: AstroClerkIntegrationParams) => Promise; export { generateSafeId, runInjectionScript, swapDocument };