ImportKeyResult
ImportKeyResult
Success-or-failure result returned by the public import* key functions.
On failure, code is 'malformed' for structurally invalid input, algorithm mismatches and backend refusal. details provides a stable stage/reason through the Result and *OrThrow/unwrap forms, without backend messages. 'limit_exceeded' is for an implementation limit.
ts
type ImportKeyResult<T> = {
readonly ok: true;
readonly value: T
} | ErrorResult<ImportKeyErrorCode, ImportKeyErrorDetails, ImportKeyFailure>