import type { ErrorBoundary } from "@prismicio/editor-ui"; import type { EmbedContent } from "@prismicio/types-internal/lib/content"; import { type KeyboardEvent, type RefObject } from "react"; import type { EmbedViewProps } from "./EmbedView"; export declare function useEmbedView(props: EmbedViewProps, inputRef: RefObject, containerRef: RefObject): { inputRef: RefObject; containerRef: RefObject; onKeyDown: (event: KeyboardEvent) => void; url: { debouncedValue: string; set: import("react").Dispatch>; value: string; }; urlChanged: (newUrl: string) => void; onContentChange: (content?: EmbedContent) => void; content: ({ embed_url: string; type: string; } & { version?: string | number | null | undefined; title?: string | null | undefined; author_name?: string | null | undefined; author_url?: string | null | undefined; provider_name?: string | null | undefined; provider_url?: string | null | undefined; cache_age?: string | number | null | undefined; thumbnail_url?: string | null | undefined; thumbnail_width?: number | null | undefined; thumbnail_height?: number | null | undefined; html?: string | null | undefined; } & { __TYPE__: "EmbedContent"; all: unknown; }) | undefined; setIsFocused: import("react").Dispatch>; errorBoundary: RefObject; onError: () => void; clearField: () => void; };