import type { UnsignedVC, VC, JWE } from '@learncard/types';
import type { SigningAuthorityForUserType } from '../types/profile';
import type { CredentialIssuer } from '../types/issuer';
export declare class SaIssueError extends Error {
    readonly status: number;
    readonly body?: string;
    readonly kind: 'timeout' | 'network' | 'http_5xx' | 'http_429' | 'http_408' | 'http_4xx' | 'malformed_response' | 'validation_error';
    readonly retryable: boolean;
    readonly cause?: unknown;
    constructor(opts: {
        message: string;
        status: number;
        kind: SaIssueError['kind'];
        retryable: boolean;
        body?: string;
        cause?: unknown;
    });
}
export declare function issueCredentialWithSigningAuthority(issuer: CredentialIssuer, credential: UnsignedVC, signingAuthorityForUser: SigningAuthorityForUserType, domain: string, encrypt?: boolean, ownerDidOverride?: string): Promise<VC | JWE>;
//# sourceMappingURL=signingAuthority.helpers.d.ts.map