import type { UnknownObj } from '#types/utils'; /** * Base delegated key params. * * @internal */ export interface DelegatedKeyParams { /** * The delegated key to use for the request, if any. */ delegatedKey?: string; } /** * Base delegated key creation params * * @internal */ export interface DelegatedKeyCreationParams extends Required { delegatedName?: string; delegatedNonce: string; } /** * Maintains strictness so that the delegated key has all required properties defined if * specified. * * @internal */ export type DelegatedKeyCreationParamsOptional = DelegatedKeyCreationParams | { delegatedKey?: undefined; delegatedNonce?: undefined; delegatedName?: undefined; }; export type DelegatedKeyProtocol = UnknownObj & Required; /** * @internal * * Used to augment types with an optional delegated key where they must * either define all the values required or none of them. * * These can also be used to allow sending an object to a function which * requires the parameters adhere to the protocol. */ export type DelegatedKeyProtocolOptional = UnknownObj & Partial; //# sourceMappingURL=delegatedKeys.d.ts.map