/**
 * A class that represents a DWN error.
 */
export declare class DwnError extends Error {
    code: string;
    constructor(code: string, message: string);
}
/**
 * DWN SDK error codes.
 */
export declare enum DwnErrorCode {
    AuthenticateJwsMissing = "AuthenticateJwsMissing",
    AuthorizationMissing = "AuthorizationMissing",
    AuthorizationUnknownAuthor = "AuthorizationUnknownAuthor",
    HdKeyDerivationPathInvalid = "HdKeyDerivationPathInvalid",
    PermissionsGrantGrantedByMismatch = "PermissionsGrantGrantedByMismatch",
    PermissionsGrantUnauthorizedGrant = "PermissionsGrantUnauthorizedGrant",
    ProtocolAuthorizationActionNotAllowed = "ProtocolAuthorizationActionNotAllowed",
    ProtocolAuthorizationIncorrectDataFormat = "ProtocolAuthorizationIncorrectDataFormat",
    ProtocolAuthorizationIncorrectProtocolPath = "ProtocolAuthorizationIncorrectProtocolPath",
    ProtocolAuthorizationInvalidSchema = "ProtocolAuthorizationInvalidSchema",
    ProtocolAuthorizationInvalidType = "ProtocolAuthorizationInvalidType",
    ProtocolAuthorizationMissingRuleSet = "ProtocolAuthorizationMissingRuleSet",
    RecordsDecryptNoMatchingKeyEncryptedFound = "RecordsDecryptNoMatchingKeyEncryptedFound",
    RecordsDeriveLeafPrivateKeyUnSupportedCurve = "RecordsDeriveLeafPrivateKeyUnSupportedCurve",
    RecordsDeriveLeafPublicKeyUnSupportedCurve = "RecordsDeriveLeafPublicKeyUnSupportedCurve",
    RecordsInvalidAncestorKeyDerivationSegment = "RecordsInvalidAncestorKeyDerivationSegment",
    RecordsProtocolsDerivationSchemeMissingProtocol = "RecordsProtocolsDerivationSchemeMissingProtocol",
    RecordsSchemasDerivationSchemeMissingSchema = "RecordsSchemasDerivationSchemeMissingSchema",
    RecordsWriteGetEntryIdUndefinedAuthor = "RecordsWriteGetEntryIdUndefinedAuthor",
    RecordsWriteDataCidMismatch = "RecordsWriteDataCidMismatch",
    RecordsWriteDataSizeMismatch = "RecordsWriteDataSizeMismatch",
    RecordsWriteMissingData = "RecordsWriterMissingData",
    RecordsWriteMissingDataStream = "RecordsWriteMissingDataStream",
    RecordsWriteValidateIntegrityEncryptionCidMismatch = "RecordsWriteValidateIntegrityEncryptionCidMismatch",
    Secp256k1KeyNotValid = "Secp256k1KeyNotValid",
    UrlProtocolNotNormalized = "UrlProtocolNotNormalized",
    UrlProtocolNotNormalizable = "UrlProtocolNotNormalizable",
    UrlSchemaNotNormalized = "UrlSchemaNotNormalized",
    UrlSchemaNotNormalizable = "UrlSchemaNotNormalizable"
}
//# sourceMappingURL=dwn-error.d.ts.map