import { Span } from '@mw-components/jaeger'; import type { MiddlewareConfig as MWConfig } from '@waiting/shared-types'; import * as Ali from '@yuntools/ali-oss'; export declare enum ConfigKey { namespace = "aliOss", config = "aliOssConfig", aliOssInstanceKey = "aliOssInstanceKey", componentName = "aliOssComponent", managerName = "aliOssManager", sourceManagerName = "aliOssSourceManager" } export declare enum ClientKey { master = "ossMaster", unitTest = "ossUnitTest" } export { BaseOptions, OssClient, ProcessRet, DataBase, DataCp, DataSign, DataStat, Config as OssConfig, FnKey, Msg, } from '@yuntools/ali-oss'; export interface ClientConfig { accessKeyId: string; accessKeySecret: string; endpoint: string; stsToken?: string; cmd?: string; debug?: boolean; bucket: string; } export interface MiddlewareOptions { debug: boolean; } export declare type MiddlewareConfig = MWConfig; /** midway DataSource */ export interface AliOssSourceConfig { dataSource: DataSource; default?: Config; } export declare type DataSource = Record; export interface Config extends ClientConfig { /** * Enable tracing via @mw-components/jaeger * @default false */ enableTracing?: boolean; /** * 强制采样请求处理时间(毫秒)阈值 * 负数不采样 * @default 10_000 */ sampleThrottleMs?: number; } export declare type MkdirOptions = Omit; export declare type CpOptions = Omit; export declare type UploadOptions = Omit; export declare type DownloadOptions = Omit; export declare type LinkOptions = Omit; export declare type RmOptions = Omit; export declare type RmrfOptions = Omit; export declare type StatOptions = Omit; export declare type PathExistsOptions = Omit; export declare type MvOptions = Omit; export declare type SignOptions = Omit; export declare type SyncOptions = Omit; export declare type SyncLocalOptions = Omit; export declare type SyncRemoteOptions = Omit; export interface QuerySpanInfo { span: Span; timestamp: number; } export interface CreateInstanceOptions { cacheInstance?: boolean | undefined; } //# sourceMappingURL=types.d.ts.map