import type { $sentArgs } from '../../../entity/constants.js'; import type { Entity, EntitySendableAction } from '../../../entity/entity.js'; import { $actionName, $spy } from './constants.js'; import type { EntitySpy } from './spy.js'; export interface Error { name: string; message: string; stack?: string; } interface MetadataBearer { $metadata: { httpStatusCode?: number; requestId?: string; extendedRequestId?: string; cfId?: string; attempts?: number; totalRetryDelay?: number; }; } export interface AwsError extends Partial<{ name: string; message: string; stack?: string; }>, Partial { Type?: string; Code?: string; $fault?: 'client' | 'server'; $service?: string; } export declare class EntityActionStub> { [$spy]: EntitySpy; [$actionName]: string; constructor(spy: EntitySpy, Action: new (entity: ENTITY) => ACTION); resolve(response: Awaited>): EntitySpy; reject(error?: string | Error | AwsError): EntitySpy; mock(mock: (...args: ReturnType) => ReturnType | Awaited> | undefined): EntitySpy; } export {};