export type UrlScheme = 'artifact' | 'image' | 'store' | 'document' | 'collection' | 'standard'; export interface ResolvedUrlState { /** The resolved URL, or undefined if not yet resolved */ url: string | undefined; /** Whether the URL is currently being resolved */ isLoading: boolean; /** Error message if resolution failed */ error: string | undefined; /** The detected URL scheme */ scheme: UrlScheme; /** Retry the URL resolution */ retry: () => void; } export interface UseResolvedUrlOptions { /** The raw URL to resolve */ rawUrl: string; /** Optional workflow run ID for resolving shorthand artifact paths */ artifactRunId?: string; /** Content disposition for artifact URLs: 'inline' for images, 'attachment' for downloads */ disposition?: 'inline' | 'attachment'; } /** * Parses a URL and returns its scheme and path */ export declare function parseUrlScheme(rawUrl: string): { scheme: UrlScheme; path: string; }; /** * Maps internal URL schemes to application routes */ export declare function mapSchemeToRoute(scheme: UrlScheme, path: string): string | null; /** * Hook to resolve custom URL schemes (artifact:, image:, etc.) to actual URLs. * Handles caching, loading states, and error handling. */ export declare function useResolvedUrl({ rawUrl, artifactRunId, disposition, }: UseResolvedUrlOptions): ResolvedUrlState; //# sourceMappingURL=useResolvedUrl.d.ts.map