import { TypedKeyValue, TypedSet } from "@constl/bohr-db"; import { JSONSchemaType } from "ajv"; import { type Constellation, type structureBdCompte } from "./client.js"; import type { schémaFonctionOublier, schémaFonctionSuivi, élémentsBd } from "./types.js"; type KeysMatching = { [K in keyof T]-?: T[K] extends V ? K : never; }[keyof T]; export declare class ComposanteClient { client: Constellation; clef: KeysMatching; typeBd: "keyvalue" | "set"; constructor({ client, clef, typeBd, }: { client: Constellation; clef: KeysMatching; typeBd: "keyvalue" | "set"; }); obtIdBd(): Promise; } export declare class ComposanteClientDic extends ComposanteClient { schémaBdPrincipale: JSONSchemaType; constructor({ client, clef, schémaBdPrincipale, }: { client: Constellation; clef: KeysMatching; schémaBdPrincipale: JSONSchemaType; }); obtBd(): Promise<{ bd: TypedKeyValue; fOublier: schémaFonctionOublier; }>; suivreBdPrincipale({ idCompte, f, }: { idCompte?: string; f: schémaFonctionSuivi; }): Promise; suivreSousBdDic({ idCompte, clef, schéma, f, }: { idCompte?: string; clef: string; schéma: JSONSchemaType; f: schémaFonctionSuivi; }): Promise; suivreSousBdListe({ idCompte, clef, schéma, f, }: { idCompte?: string; clef: string; schéma: JSONSchemaType; f: schémaFonctionSuivi; }): Promise; suivreIdBd({ f, idCompte, }: { f: schémaFonctionSuivi; idCompte?: string; }): Promise; } export declare class ComposanteClientListe extends ComposanteClient { schémaBdPrincipale: JSONSchemaType; constructor({ client, clef, schémaBdPrincipale, }: { client: Constellation; clef: KeysMatching; schémaBdPrincipale: JSONSchemaType; }); obtBd(): Promise<{ bd: TypedSet; fOublier: schémaFonctionOublier; }>; suivreBdPrincipale({ idCompte, f, }: { idCompte?: string; f: schémaFonctionSuivi; }): Promise; suivreIdBd({ f, idCompte, }: { f: schémaFonctionSuivi; idCompte?: string; }): Promise; } export {};