aboutsummaryrefslogtreecommitdiff
path: root/src/external/stellar-freighter-api/@shared/api/helpers/extensionMessaging.d.ts
blob: 3dfd5c9bce329850eb777d04c4b60c26ba72032a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { EXTERNAL_SERVICE_TYPES, SERVICE_TYPES } from "../../constants/services";
import { Response } from "../types";
interface Msg {
    [key: string]: any;
    type: EXTERNAL_SERVICE_TYPES | SERVICE_TYPES;
}
export declare const sendMessageToContentScript: (msg: Msg) => Promise<Response>;
export declare const sendMessageToBackground: (msg: Msg) => Promise<Response>;
export declare const FreighterApiNodeError: {
    code: number;
    message: string;
};
export declare const FreighterApiInternalError: {
    code: number;
    message: string;
};
export declare const FreighterApiDeclinedError: {
    code: number;
    message: string;
};
export {};