import { Keypair } from '@atproto/crypto'; import { AxiosError } from 'axios'; import * as t from './types'; export declare class Client { url: string; constructor(url: string); private makeGetReq; getDocument(did: string): Promise; getDocumentData(did: string): Promise; getOperationLog(did: string): Promise; getAuditableLog(did: string): Promise; postOpUrl(did: string): string; getLastOp(did: string): Promise; sendOperation(did: string, op: t.OpOrTombstone): Promise; export(after?: string, count?: number): Promise; createDid(opts: { signingKey: string; handle: string; pds: string; rotationKeys: string[]; signer: Keypair; }): Promise; private ensureLastOp; updateData(did: string, signer: Keypair, fn: (lastOp: t.UnsignedOperation) => Omit): Promise; updateAtprotoKey(did: string, signer: Keypair, atprotoKey: string): Promise; updateHandle(did: string, signer: Keypair, handle: string): Promise; updatePds(did: string, signer: Keypair, endpoint: string): Promise; updateRotationKeys(did: string, signer: Keypair, keys: string[]): Promise; tombstone(did: string, signer: Keypair): Promise; health(): Promise; } export declare class PlcClientError extends Error { status: number; data: unknown; message: string; constructor(status: number, data: unknown, message: string); static fromAxiosError(err: AxiosError): PlcClientError; } export default Client;