import * as crypto from '@atproto/crypto'; import { type DidString } from '@atproto/lex-schema'; type ServiceJwtParams = { iss: string; aud: string; iat?: number; exp?: number; lxm: string | null; keypair: crypto.Keypair; }; type ServiceJwtPayload = { iss: DidString | `${DidString}#${string}`; aud: string; exp: number; lxm?: string; jti?: string; }; export declare const createServiceJwt: (params: ServiceJwtParams) => Promise; export declare const createServiceAuthHeaders: (params: ServiceJwtParams) => Promise<{ headers: { authorization: string; }; }>; export type VerifySignatureWithKeyFn = (key: string, msgBytes: Uint8Array, sigBytes: Uint8Array, alg: string) => Promise; export declare const verifyJwt: (jwtStr: string, ownDid: string | null, // null indicates to skip the audience check lxm: string | null, // null indicates to skip the lxm check getSigningKey: (iss: DidString | `${DidString}#${string}`, forceRefresh: boolean) => Promise, verifySignatureWithKey?: VerifySignatureWithKeyFn) => Promise; export declare const cryptoVerifySignatureWithKey: VerifySignatureWithKeyFn; export {}; //# sourceMappingURL=auth.d.ts.map