import type { SKYKOIConfig } from "../../config/config.js"; import * as opconnect from "./opconnect.js"; import { type BulkProvisionResult } from "./nylas-bulk.js"; import type { DirectoryUser, EnterpriseConnectionKind, EnterpriseOrg, MintedToken } from "./types.js"; export { hasEnterpriseState } from "./store.js"; export { platformIdentityAvailable } from "./platform-sync.js"; export type { OpCredential } from "./opconnect.js"; export type { BulkProvisionResult } from "./nylas-bulk.js"; export type EnterpriseStatus = { configured: boolean; platformLinked: boolean; syncedAt?: number; org?: EnterpriseOrg; connections: Array<{ kind: EnterpriseConnectionKind; status: string; source?: string; updatedAt?: string; detail?: string; error?: string; }>; counts: { people: number; activePeople: number; grants: number; activeGrants: number; errorGrants: number; }; }; export declare function status(cfg?: SKYKOIConfig): EnterpriseStatus; export declare function roster(query?: string, limit?: number): DirectoryUser[]; /** * Mint (or reuse) an access token for one connection. `email` is required for * google-dwd (the impersonated user); other kinds ignore it. */ export declare function token(args: { kind: EnterpriseConnectionKind; email?: string; scopes?: string[]; }): Promise; export declare function credential(query: string): Promise; export declare function provision(args: { emails?: string[]; dryRun?: boolean; }): Promise; export type SyncResult = { platform?: { ok: boolean; reason?: string; }; roster: { total: number; bySource: Record; errors: string[]; }; }; /** * Combined sync: optionally pull the platform snapshot first, then live-list * every roster-capable provider and merge the results into the local cache. */ export declare function sync(opts?: { fromPlatform?: boolean; cfg?: SKYKOIConfig; }): Promise;