import type { ClientOptions, OrdfsContentOptions, OrdfsContentResponse, OrdfsMetadata } from "../types"; import { BaseClient } from "./BaseClient"; /** * Client for ordfs routes. * Provides inscription content and metadata. * * Content is served from /content (e.g., https://1sat.shruggr.cloud/content/:outpoint) * API routes use /1sat/ordfs (e.g., https://1sat.shruggr.cloud/1sat/ordfs/metadata/:outpoint) */ export declare class OrdfsClient extends BaseClient { private readonly contentBaseUrl; constructor(baseUrl: string, options?: ClientOptions); /** * Get metadata for an inscription * @param outpoint - Outpoint (txid_vout) or txid * @param seq - Optional sequence number (-1 for latest) */ getMetadata(outpoint: string, seq?: number): Promise; /** * Get inscription content with full response headers * @param outpoint - Outpoint (txid_vout) or txid * @param options - Content request options */ getContent(outpoint: string, options?: OrdfsContentOptions): Promise; /** * Preview base64-encoded HTML content * @param b64HtmlData - Base64-encoded HTML */ previewHtml(b64HtmlData: string): Promise; /** * Preview content by posting it directly * @param content - Content to preview * @param contentType - Content type header */ previewContent(content: Uint8Array, contentType: string): Promise; /** * Get the URL for fetching inscription content directly. * Useful for displaying in img/video tags. * @param outpoint - Outpoint (txid_vout) or txid * @param options - Content request options */ getContentUrl(outpoint: string, options?: OrdfsContentOptions): string; /** * Parse response headers into structured object */ private parseResponseHeaders; }