import Transport from 'winston-transport'; /** * PubSubLogTransport is a custom Winston transport that publishes log messages to a GraphQL Pub/Sub topic. */ export declare class PubSubLogTransport extends Transport { /** * The source object providing the log messages. * @type {object} */ source: object; /** * The Pub/Sub topic to which log messages will be published. * @type {string} */ topic: string; /** * The name of the field resolver for log messages. * @type {string} */ resolver: string; /** * Creates an instance of PubSubLogTransport. * @param {object} opts - Options for configuring the transport. * @param {string} opts.topic - The Pub/Sub topic to which log messages will be published. * @param {object} opts.source - The source object providing the log messages. * @param {string} opts.resolver - The name of the field resolver for log messages (default: derived from the topic). */ constructor(opts: any); /** * Publishes a log message to the configured Pub/Sub topic. * @param {object} info - The log message information. * @param {Function} callback - The callback function to be called after publishing the message. */ log(info: any, callback: any): void; }