@energyweb/node-red-contrib-green-proof-worker
Version:
## Peer dependencies
31 lines (30 loc) • 1.26 kB
TypeScript
import { Kysely } from 'kysely';
import * as z from 'zod';
import type { Api } from '../api';
import type { SqliteDatabase } from '../types';
export declare const SqliteConfig: (api: Api) => {
new (config: any): {
database: Promise<Kysely<SqliteDatabase>>;
onInput(): void;
onDestroy(): Promise<void>;
api: Api;
nodeConfig: unknown;
messageZod: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
getBaseUrls(): Promise<{
kafka_url?: string | string[] | undefined;
kafka_proxy_url?: string | undefined;
indexer_url?: string | undefined;
rpc_url?: string | undefined;
}>;
getNodeEnvConfig(): {
BASE_URL_CDN?: string | undefined;
EWX_SOLUTION_ID?: string | undefined;
EWX_SOLUTION_GROUP_ID?: string | undefined;
EWX_WORKLOGIC_ID?: string | undefined;
EWX_SQLITE_PATH?: string | undefined;
EWX_WORKER_ADDRESS?: string | undefined;
};
sendBuilder(inputMessage: import("../types").NodeMessage<any>): import("../node").SendBuilder;
handleMaybePromise<T>(maybePromiseCb: () => T | Promise<T>, done: (err?: Error | undefined) => void): void;
};
};