import { ComputedRef, Ref } from 'vue'; import { AxiosInstance } from 'axios'; import { User, AppsDBEntry as GeneratedAppsDbEntry } from '../../types/openapi'; import { PitcherInfo } from '../types/app'; type AppsDBEntry = GeneratedAppsDbEntry & { value: Record | null; }; interface EntryParams { store_name: string; user_id: User['id']; entry_key: string; } interface GlobalEntryParams { store_name: string; entry_key: string; } interface UpsertEntryParams extends EntryParams { data: Record; } interface UpsertGlobalEntryParams extends GlobalEntryParams { data: Record; } type UseAppsDbPayload = { pitcherInfo?: ComputedRef; restApiAxios?: Ref; }; export declare function useAppsDb(payload?: UseAppsDbPayload): { upsertEntry: (payload: UpsertEntryParams) => Promise; getEntry: (params: EntryParams) => Promise | null; } & { value: Record; }>; deleteEntry: (params: EntryParams) => Promise>; upsertGlobalEntry: (payload: UpsertGlobalEntryParams) => Promise; getGlobalEntry: (params: GlobalEntryParams) => Promise; deleteGlobalEntry: (params: GlobalEntryParams) => Promise>; }; export {};