import { Connector, type extensions } from '@toa.io/core'; import type { Connection } from './Connection'; export declare class Aspect extends Connector implements extensions.Aspect { readonly name = "stash"; private readonly connection; private redis; private redlock; constructor(connection: Connection); invoke(method: 'store', key: string, value: object): Promise; invoke(method: 'fetch', key: string): Promise; invoke(method: 'lock', key: Resources, routine: Routine): Promise; invoke(method: string, ...args: unknown[]): Promise; protected open(): Promise; private store; private fetch; private lock; } type Routine = () => Promise; type Resources = string | string[]; export {};