import type { JsonRpcEngineEndCallback } from "@metamask/json-rpc-engine";
import type { Messenger } from "@metamask/messenger";
import type { TruncatedSnap } from "@metamask/snaps-utils";
import type { PendingJsonRpcResponse } from "@metamask/utils";
import type { JsonRpcRequestWithOrigin, SnapControllerGetAllSnapsAction } from "../types.cjs";
export type GetAllSnapsResult = TruncatedSnap[];
export type GetAllSnapsMethodActions = SnapControllerGetAllSnapsAction;
/**
 * `wallet_getAllSnaps` gets all installed Snaps. Currently, this can only be
 * called from `https://snaps.metamask.io`.
 *
 * @internal
 */
export declare const getAllSnapsHandler: {
    implementation: typeof getAllSnapsImplementation;
    actionNames: "SnapController:getAllSnaps"[];
};
/**
 * The `wallet_getAllSnaps` method implementation.
 * Fetches all installed snaps and adds them to the JSON-RPC response.
 *
 * @param request - The JSON-RPC request object.
 * @param response - The JSON-RPC response object.
 * @param _next - The `json-rpc-engine` "next" callback. Not used by this
 * function.
 * @param end - The `json-rpc-engine` "end" callback.
 * @param _hooks - The RPC method hooks. Not used by this function.
 * @param messenger - The messenger used to call controller actions.
 * @returns Nothing.
 */
declare function getAllSnapsImplementation(request: JsonRpcRequestWithOrigin, response: PendingJsonRpcResponse<GetAllSnapsResult>, _next: unknown, end: JsonRpcEngineEndCallback, _hooks: never, messenger: Messenger<string, GetAllSnapsMethodActions>): Promise<void>;
export {};
//# sourceMappingURL=getAllSnaps.d.cts.map