import { IdentityContext } from "hyinsit-types"; export declare function updateUsing(usingKey: string, existing: boolean, internal: (opts: { existing: boolean; }) => Promise): Promise; export declare function closeWithUsing(usingKey: string, closeFn: () => Promise): Promise; export declare const setAppTenantId: (appId: string) => void; export declare const setIdentity: (identity: IdentityContext | null) => void; export declare function closeAppDBs(): Promise; export declare function getContextDB(key: string, opts: any): any;