import type { Sticker, StickerLibrary } from './stickers.js'; import type { ChannelSession, WeixinChannel } from '../domain.js'; export interface NativeEmoji { provider: string; id: string; channelId: string; accountId: string; label: string; previewUrl?: string; } export type ResolvedSticker = { item: Sticker; data: Buffer; native?: never; } | { item: Sticker; native: NativeEmoji; data?: never; }; export interface StickerAdapter { list(owner: string, query: string, signal: AbortSignal, kind?: 'image' | 'all'): Promise; resolve(owner: string, id: string, signal: AbortSignal): Promise; } /** Default library remains usable without any channel. Providers override only their route. */ export declare class StickerAdapters { readonly fallback: StickerAdapter; private readonly factories; constructor(library: StickerLibrary); register(platform: string, factory: (channel: WeixinChannel) => StickerAdapter): void; forRoute(route: ChannelSession | undefined, channels: readonly WeixinChannel[]): StickerAdapter; } export declare function validNativeEmoji(value: unknown): value is NativeEmoji; export declare function validEmojiPreview(value: string): boolean; //# sourceMappingURL=sticker-adapter.d.ts.map