import 'express-async-errors'; import type http from 'node:http'; import express from 'express'; import { type MethodHandler } from '@atproto/xrpc-server'; import { type ServerConfig, type ServerEnvironment, type ServerSecrets } from './config/index.js'; import { AppContext, type AppContextOptions } from './context.js'; import type { app } from './lexicons.js'; export { bearerTokenFromReq, createPublicKeyObject, createSecretKeyObject, } from './auth-verifier.js'; export * from './config/index.js'; export { AppContext } from './context.js'; export { Database } from './db/index.js'; export { DiskBlobStore } from './disk-blobstore.js'; export * from './lexicons.js'; export { httpLogger } from './logger.js'; export { type CommitDataWithOps, type PreparedWrite } from './repo/index.js'; export * as repoPrepare from './repo/prepare.js'; export { scripts } from './scripts/index.js'; export * as sequencer from './sequencer/index.js'; /** * @deprecated Legacy export for backwards compatibility */ export type SkeletonHandler = MethodHandler; export declare class PDS implements AsyncDisposable { ctx: AppContext; app: express.Application; server?: http.Server; private terminator?; constructor(opts: { ctx: AppContext; app: express.Application; }); static fromEnv(env?: ServerEnvironment): Promise; /** * Creates and starts a PDS instance, and waits for a termination signal to * stop it. */ static run({ env, signal: inputSignal, signals, onCreated, onStarted, }?: { env?: ServerEnvironment; signal?: AbortSignal; signals?: readonly NodeJS.Signals[]; /** * Hook that allows attaching additional logic (like adding custom HTTP * routes) before the PDS is started. */ onCreated?: (pds: PDS) => void | Promise; onStarted?: (pds: PDS) => void | Promise; }): Promise; static create(cfg: ServerConfig, secrets: ServerSecrets, overrides?: Partial): Promise; start(): Promise; destroy(): Promise; [Symbol.asyncDispose](): Promise; } export default PDS; //# sourceMappingURL=index.d.ts.map