import { NotificationsAdapter } from "./adapter.mjs"; import { NotificationsAdapterContext } from "../index.mjs"; //#region src/composables/useNotifications/adapters/knock.d.ts /** Minimal Knock feed item shape. Uses type-only imports to avoid bundling the SDK. */ interface KnockFeedItem { [key: string]: unknown; id: string; data?: Record; blocks?: Array<{ type: string; name: string; content: string; rendered: string; }>; inserted_at?: string; read_at?: string | null; seen_at?: string | null; archived_at?: string | null; } /** Minimal Knock feed instance interface. */ interface KnockFeed { on: (event: string, handler: (data: unknown) => void) => void; off: (event: string, handler: (data: unknown) => void) => void; markAsRead: (item: KnockFeedItem) => Promise; markAsArchived: (item: KnockFeedItem) => Promise; fetch: (options?: Record) => Promise; teardown: () => void; listenForUpdates: () => void; } declare class KnockNotificationsAdapter extends NotificationsAdapter { private feed; private items; private context; private onReceived; private onPage; private onRead; private onArchived; constructor(feed: KnockFeed); setup(context: NotificationsAdapterContext): void; dispose(): void; } //#endregion export { KnockFeed, KnockFeedItem, KnockNotificationsAdapter };