import type { MachinatNode } from '@machinat/core'; import StateControllerI from '@machinat/core/base/StateController'; import BotP from '../Bot'; /** * MessengerAssetsManager stores name-to-id mapping for assets created in * Messenger platform. * @category Provider */ export declare class MessengerAssetsManager { bot: BotP; pageId: string; _stateController: StateControllerI; constructor(stateManager: StateControllerI, bot: BotP); private _makeResourceToken; getAssetId(resource: string, name: string): Promise; saveAssetId(resource: string, name: string, id: string): Promise; getAllAssets(resource: string): Promise>; unsaveAssetId(resource: string, name: string): Promise; getAttachment(name: string): Promise; saveAttachment(name: string, id: string): Promise; getAllAttachments(): Promise>; unsaveAttachment(name: string): Promise; renderAttachment(name: string, node: MachinatNode): Promise; getPersona(name: string): Promise; getAllPersonas(): Promise>; savePersona(name: string, id: string): Promise; unsavePersona(name: string): Promise; createPersona(name: string, body: any): Promise; deletePersona(name: string): Promise; } declare const AssetsManagerP: import("@machinat/core/service").ServiceProvider & typeof MessengerAssetsManager; declare type AssetsManagerP = MessengerAssetsManager; export default AssetsManagerP;