import { type PartnerInboundAttachment, type PartnerOutboundAttachment } from '../../channel-message.js'; import type { DirectConfig } from './transport.js'; export interface DirectMedia { source: string; kind?: 'image' | 'record' | 'video' | 'file'; fileId?: string; fileHash?: string; busid?: number; qq?: { messageId: number; index: number; senderId: string; }; name?: string; mediaType?: string; size?: number; encrypted?: boolean; } export declare const DIRECT_MEDIA_MAX_COUNT = 8; type Guard = () => Promise; /** Only server-relative, authenticated media APIs. Never fetch a message-provided HTTP URL. */ export declare class DirectMediaTransfer { private config; private token; private guard; constructor(config: DirectConfig, token: string, guard: Guard); private bytes; private json; receive(postId: string, refs: DirectMedia[], signal: AbortSignal, maxBytes?: number): Promise; send(file: PartnerOutboundAttachment, signal: AbortSignal): Promise; } export declare function imageType(data: Buffer): string | undefined; export declare function readOutboundMedia(file: PartnerOutboundAttachment, signal: AbortSignal): Promise; export {}; //# sourceMappingURL=media.d.ts.map