{"version":3,"file":"cronjob.cjs","sourceRoot":"","sources":["../../../src/types/handlers/cronjob.ts"],"names":[],"mappings":"","sourcesContent":["import type { JsonRpcParams, JsonRpcRequest } from '@metamask/utils';\n\n/**\n * The `onCronjob` handler. This is called on a regular interval, as defined by\n * the Snap's manifest.\n *\n * Note that using this handler requires the `endowment:cronjob` permission.\n *\n * @param args - The request arguments.\n * @param args.request - The JSON-RPC request sent to the snap. The parameters\n * are defined by the Snap's manifest.\n */\nexport type OnCronjobHandler<Params extends JsonRpcParams = JsonRpcParams> =\n  (args: { request: JsonRpcRequest<Params> }) => Promise<unknown>;\n"]}