import { Collection } from "./Collection"; import { Document } from "./Document"; export declare class Connection { private client; private readonly database; protected constructor(url: Promise, database?: Promise); get(name: string, shard: Shard, idLength?: 4 | 8 | 12 | 16): Promise | undefined>; close(): Promise; static open(url: string, database?: string): Connection; }