UNPKG

@bigdigital/kiosk-content-sdk

Version:

A Firebase-powered Content Management System SDK optimized for kiosks with offline support, template management, and real-time connection monitoring

20 lines 988 B
import type { KioskConfig, Content, Template, Field, TemplateContentStructure } from "./types"; export declare class KioskClient { private app; private db; constructor(config: KioskConfig); getTemplates(): Promise<Template[]>; getTemplateById(templateId: string): Promise<Template | null>; getPublishedContent(): Promise<Content[]>; getContentByProject(projectId: string): Promise<Content[]>; getContentWithTemplate(contentId: string): Promise<{ content: Content; template: Template | null; groupedContent?: Promise<TemplateContentStructure>; }>; getGroupedTemplateContent(template: Template, content: Content): Promise<TemplateContentStructure>; } export declare function isValidTemplate(template: unknown): template is Template; export declare function isValidContent(content: unknown): content is Content; export declare function validateTemplateField(field: unknown): field is Field; //# sourceMappingURL=client.d.ts.map