import { l } from "@atproto/lex-schema"; import * as EmbedExternal from "./external.defs.js"; import * as RepoStrongRef from "../../../com/atproto/repo/strongRef.defs.js"; declare const $nsid = "app.bsky.embed.getEmbedExternalView"; type $nsid = typeof $nsid; export { $nsid }; export declare const $params: l.ParamsSchema<{ readonly url: l.StringSchema<{ readonly format: "uri"; }>; readonly canonicalUri: l.OptionalSchema>; readonly uris: l.OptionalSchema>>; }>; export type $Params = l.InferOutput; export declare const $output: l.Payload<"application/json", l.ObjectSchema<{ view: l.OptionalSchema>>; data: l.OptionalSchema>, l.TypedRefSchema>, l.TypedRefSchema>, l.TypedRefSchema>], false>>; associatedRefs: l.OptionalSchema>>>; associatedRecords: l.OptionalSchema>; unverifiedAssociatedRefs: l.OptionalSchema>>>; unverifiedAssociatedRecords: l.OptionalSchema>; }>>; export type $Output = l.InferPayload; export type $OutputBody = l.InferPayloadBody; /** Resolve one AT-URI record into the data needed to render an enhanced external embed. The records are validated against the requested `url` before any view is built. When validation passes, returns `data`, `associatedRefs` (strongRefs to embed into a post's external.associatedRefs) and the raw `associatedRecords`, plus a legacy `view` for Standard.site records only. When validation fails, only `unverifiedAssociatedRefs` and `unverifiedAssociatedRecords` are returned and no view or data is built. The response is empty (`{}`) when no record URI was usable or the record could not be resolved; clients should fall back to their own link-card rendering in that case and skip writing strongRefs to the post. */ declare const main: l.Query<"app.bsky.embed.getEmbedExternalView", l.ParamsSchema<{ readonly url: l.StringSchema<{ readonly format: "uri"; }>; readonly canonicalUri: l.OptionalSchema>; readonly uris: l.OptionalSchema>>; }>, l.Payload<"application/json", l.ObjectSchema<{ view: l.OptionalSchema>>; data: l.OptionalSchema>, l.TypedRefSchema>, l.TypedRefSchema>, l.TypedRefSchema>], false>>; associatedRefs: l.OptionalSchema>>>; associatedRecords: l.OptionalSchema>; unverifiedAssociatedRefs: l.OptionalSchema>>>; unverifiedAssociatedRecords: l.OptionalSchema>; }>>, undefined>; export { main }; declare const $lxm = "app.bsky.embed.getEmbedExternalView"; type $lxm = typeof $lxm; export { $lxm }; //# sourceMappingURL=getEmbedExternalView.defs.d.ts.map