import { isRecord } from "@gajae-code/utils"; export { isRecord }; import type { AddressResolver } from "../insane/url-guard"; export declare function asRecord(value: unknown): Record | null; export declare function asString(value: unknown): string | null; export declare function asNumber(value: unknown): number | null; export interface BinaryFetchSuccess { ok: true; buffer: Uint8Array; contentDisposition?: string; } export type BinaryFetchResult = BinaryFetchSuccess | { ok: false; error?: string; }; export interface FetchBinaryOptions { publicUrlGuard?: boolean; resolver?: AddressResolver; maxRedirects?: number; } /** * Fetch binary content from a URL */ export declare function fetchBinary(url: string, timeout?: number, signal?: AbortSignal, options?: FetchBinaryOptions): Promise; /** * Convert binary content to markdown using markit. */ export declare function convertWithMarkit(buffer: Uint8Array, extension: string, timeout?: number, signal?: AbortSignal): Promise<{ content: string; ok: boolean; error?: string; }>;