import * as _phantom_sdk_types from '@phantom/sdk-types'; import { Stamper } from '@phantom/sdk-types'; import { Buffer } from 'buffer'; interface ApiKeyStamperConfig { apiSecretKey: string; } /** * Simple stamper that takes a pre-existing secret key and creates stamps * Does not manage keys - just signs with the provided secret key */ declare class ApiKeyStamper implements Stamper { readonly algorithm: _phantom_sdk_types.Algorithm; type: "PKI" | "OIDC"; idToken?: string; salt?: string; private keypair; constructor(config: ApiKeyStamperConfig); /** * Create X-Phantom-Stamp header value * @param params - Parameters object with data to sign * @returns Complete X-Phantom-Stamp header value */ stamp(params: { data: Buffer; type?: "PKI"; idToken?: never; salt?: never; } | { data: Buffer; type: "OIDC"; idToken: string; salt: string; }): Promise; } export { ApiKeyStamper, ApiKeyStamperConfig };