/** * Native signature credential */ import { PrivateKey, PublicKey, Signature } from 'o1js'; import { type StoredCredential, type Credential, type CredentialSpec } from './credential.ts'; import { type InferNestedProvable, NestedProvable } from './nested.ts'; import type { Json } from './types.ts'; export { Native, createNative, type NativeWitness }; type NativeWitness = { type: 'native'; issuer: PublicKey; issuerSignature: Signature; }; type Native = StoredCredential; declare function Native(dataType: DataType): CredentialSpec>; declare namespace Native { var issuer: (issuer: PublicKey) => import("node_modules/o1js/dist/node/lib/provable/field.js").Field; } declare function createNative(issuerPrivateKey: PrivateKey, credentialInput: Credential | string, metadata?: Json): Native;