UNPKG

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