import { Record } from '../interfaces/Record'; export declare type SubscribeType = () => Promise; export declare type UnsubscribeType = () => Promise; export declare type FetchType = () => Promise; export declare type CreateType = (record: {}) => Promise; export declare type UpdateType = (id: string, record: {}) => Promise; export declare type DeleteType = (id: string) => Promise; export interface Actions { subscribe: SubscribeType; unsubscribe: UnsubscribeType; fetch: FetchType; create: CreateType; update: UpdateType; delete: DeleteType; } export declare function useAppContent(collectionName: string, initialFetch?: boolean): { records: T[]; actions: Actions; isSubscribed: boolean; };