import { BooleanResponse, Content, ContentResponse, Nullable } from '../..'; import { AuthRequest, OptionalAuthRequest } from '../common'; /** * CreateContentContainer */ export interface CreateContentContainerRequest extends AuthRequest { name: string; metadata?: any; isActive?: boolean; isAdminOnly?: boolean; isAuthOnly?: boolean; } export declare type CreateContentContainerResponse = BooleanResponse; /** * Create a container of content. * @param userToken The token of the creator. * @param name The name of the container. * @param metadata Any extra data surrounding this container. * @param isActive Is content from this container live? * @param isAdminOnly Can only admins view this content? * @param isAuthOnly Can only authenticated users view this content? * @returns A promise containing a boolean indicating whether or not the container was created. */ export declare const CreateContentContainer: import("../common").ProtocolFunction; /** * UpdateContentContainer */ export interface UpdateContentContainerRequest extends AuthRequest { name: string; metadata?: any; isActive?: boolean; isAdminOnly?: boolean; isAuthOnly?: boolean; } export declare type UpdateContentContainerResponse = BooleanResponse; /** * Updates a container of content. * @param userToken The token of the creator. * @param name The name of the container. * @param metadata Any extra data surrounding this container. * @param isActive Is content from this container live? * @param isAdminOnly Can only admins view this content? * @param isAuthOnly Can only authenticated users view this content? * @returns A promise containing a boolean indicating whether or not the container was updated. */ export declare const UpdateContentContainer: import("../common").ProtocolFunction; /** * CreateContent */ export interface CreateContentRequest extends AuthRequest { container: string; content: Content; } export declare type CreateContentResponse = BooleanResponse; /** * Create content within a container. * @param userToken The token of the creator. * @param container The name of the container. * @param content The content to store. * @returns A promise containing a boolean indicating whether or not the content was created. */ export declare const CreateContent: import("../common").ProtocolFunction; /** * GetContent */ export interface GetContentRequest extends OptionalAuthRequest { container: string; key?: string; } export declare type GetContentResponse = Nullable>; /** * Gets content from a container. * @param userToken The token of the creator. * @param container The name of the container. * @param key The key of the content. * @returns A promise containing a content response or null. */ export declare const GetContent: import("../common").ProtocolFunction>>; /** * UpdateContent */ export interface UpdateContentRequest extends AuthRequest { id: string; container: string; content: Content; } export declare type UpdateContentResponse = BooleanResponse; /** * Update content within a container * @param userToken The token of the creator. * @param id The id of the content. * @param container The name of the container * @param content The new content. * @returns A promise containing a boolean indicating whether or not the container was updated. */ export declare const UpdateContent: import("../common").ProtocolFunction;