import { MatchResult } from "path-to-regexp"; import { StateFn } from "./interfaces"; export declare const getStateMethods: (defaultObjectName: string, matches?: MatchResult) => StateFn; export declare const parseObjectStateMapping: (objectStateMapping: string, matches?: MatchResult) => string; export declare const deleteObjectState: (obj: any, callback: any) => (propertyName: string) => Promise; export declare const deleteAllObjectState: (obj: any, callback: any) => () => Promise; export declare const getObjectState: (obj: any, callback: any) => (propertyName: string) => Promise; export declare const listObjectState: (obj: any, callback: any) => (payload: any) => Promise; export declare const putObjectState: (obj: any, callback: any) => (payload: any) => Promise; /** * Retrieves an object instance by its name and derived ID. * @param objectName The name of the durable object Class * @param objectId string that will be used to generate the ID for the object. If undefined, "default" will be used. * @returns */ export declare const getEnvObject: (objectName: string, objectId: string | undefined) => any; /** * Retrieves an object instance by its name and Cloudflare-given ID. * The Cloudflare ID for the object instance can be found through getInstanceList() * @param objectName The name of the durable object Class * @param cloudflareObjectId The Cloudflare ID of the object instance. * @returns */ export declare const getEnvObjectByCloudflareId: (objectName: string, cloudflareObjectId: string) => any; //# sourceMappingURL=State.d.ts.map