UNPKG

1.24 kBTypeScriptView Raw
1import "source-map-support/register";
2import { Schema, SchemaDefinition } from "./Schema";
3import { Condition } from "./Condition";
4import { Document } from "./Document";
5import { ModelType } from "./General";
6declare const _default: {
7 model: {
8 <T extends Document>(name: string, schema?: Schema | SchemaDefinition | (Schema | SchemaDefinition)[], options?: Partial<import("./Model").ModelOptions>): ModelType<T>;
9 defaults: any;
10 };
11 Schema: typeof Schema;
12 Condition: typeof Condition;
13 transaction: (transactions: any[], settings: import("./Transaction").TransactionSettings, callback: import("./General").CallbackType<any, any>) => any;
14 aws: {
15 sdk: typeof import("aws-sdk");
16 ddb: typeof import("./aws/ddb");
17 converter: typeof import("./aws/converter");
18 };
19 logger: {
20 pause: () => void;
21 resume: () => void;
22 status: () => "active" | "paused";
23 providers: {
24 set: (provider: any) => void;
25 clear: () => void;
26 add: (provider: any) => void;
27 delete: (id: string | string[]) => void;
28 list: () => any[];
29 };
30 };
31 UNDEFINED: symbol;
32 THIS: symbol;
33};
34export = _default;