import { ClientSubscription } from '../../client/ClientSubscription'; import { ErrorCallback } from '../../client/client_base'; import { ClientSession } from '../../client/client_session'; import { MonitoredItem } from '../../client/MonitoredItem'; import { OPCUAClient } from '../../client/opcua_client'; import { IReadValueId } from '../../generated'; /** * @method perform_operation_on_client_session * * simple wrapper that operates on a freshly created opcua session. * The wrapper: * - connects to the server, * - creates a session * - calls your **callback** method (func) with the session object * - closes the session * - disconnects the client * - finally call the final **callback** (done_func) * @param client * @param endpointUrl {String} * @param {Function} func * @param func.session {Session} the done callback to call when operation is completed * @param func.done {Function} the done callback to call when operation is completed * @param [func.done.err] {Error} an optional error to pass if the function has failed * @param {Function} done_func * @param [done_func.err] {Error} an optional error to pass if the function has failed */ export declare function perform_operation_on_client_session(client: OPCUAClient, endpointUrl: string, func: (session: ClientSession, done: any) => void, done_func: ErrorCallback): void; /** * @method perform_operation_on_subscription * * simple wrapper that operates on a freshly created subscription. * * - connects to the server,and create a session * - create a new subscription with a publish interval of 100 ms * - calls your **callback** method (do_func) with the subscription object * - delete the subscription * - close the session and disconnect from the server * - finally call the final **callback** (done_func) * * @param client {OPCUAClientBase} * @param endpointUrl {String} * @param {Function} do_func * @param do_func.session {Session} the done callback to call when operation is completed * @param do_func.done {Function} the done callback to call when operation is completed * * @param {Function} done_func * @param {Error} [done_func.err] */ export declare function perform_operation_on_subscription(client: OPCUAClient, endpointUrl: string, do_func: (session: ClientSession, subscription: ClientSubscription, done: any) => void, done_func: ErrorCallback): void; export declare function perform_operation_on_subscriptionP(client: OPCUAClient, endpointUrl: string, do_func: (session: ClientSession, subscription: ClientSubscription, done: any) => void): Promise; export declare function perform_operation_on_raw_subscription(client: OPCUAClient, endpointUrl: string, f: (session: ClientSession, result: any, done: ErrorCallback) => void, done: (value?: unknown) => void): void; export declare function perform_operation_on_monitoredItemP(client: OPCUAClient, endpointUrl: string, monitoredItemId: string | IReadValueId, func: (session: ClientSession, subscription: ClientSubscription, monitoredItem: MonitoredItem, done: (value?: unknown) => void) => void): Promise; //# sourceMappingURL=perform_operation_on_client_session.d.ts.map