import { IpcPool } from "@dweb-browser/core"; import { X_PLAOC_QUERY } from "../../common/const.js"; import { type $BuildRequestInit } from "../../helper/request.js"; import type { $BuildChannelWithBaseInit, $BuildRequestWithBaseInit, $MMID } from "./base.type.js"; export declare const webIpcPool: IpcPool; export declare abstract class BasePlugin { readonly mmid: $MMID; private static urlData; static api_url: string; static external_url: string; self: { mmid: `${string}.dweb`; ipc_support_protocols: { cbor: boolean; protobuf: boolean; json: boolean; }; dweb_deeplinks: never[]; categories: never[]; name: string; }; constructor(mmid: $MMID); fetchApi(url: string, init?: $BuildRequestInit): Promise & { jsonlines(): Promise>; stream(): Promise>; number(): Promise; ok(): Promise; text(): Promise; binary(): Promise; boolean(): Promise; object(): Promise; }; buildApiRequest(pathname: string, init?: $BuildRequestWithBaseInit): Request & { fetch(): Promise & { jsonlines(): Promise>; stream(): Promise>; number(): Promise; ok(): Promise; text(): Promise; binary(): Promise; boolean(): Promise; object(): Promise; }; } & ThisType & { jsonlines(): Promise>; stream(): Promise>; number(): Promise; ok(): Promise; text(): Promise; binary(): Promise; boolean(): Promise; object(): Promise; }; }>; buildChannel(pathname: string, init?: $BuildChannelWithBaseInit): Promise; protected createSignal: = import("@dweb-browser/helper/createSignal.ts").$Callback<[], unknown>>(autoStart?: boolean) => import("@dweb-browser/helper/createSignal.ts").Signal; /** * 获取指定的url * @param urlType * @returns */ static getUrl(urlType: X_PLAOC_QUERY): string; } //# sourceMappingURL=base.plugin.d.ts.map