1 | import { BaseMetadata, ServiceObject } from './nodejs-common/index.js';
|
2 | import { Storage } from './storage.js';
|
3 | export interface StopCallback {
|
4 | (err: Error | null, apiResponse?: unknown): void;
|
5 | }
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 | declare class Channel extends ServiceObject<Channel, BaseMetadata> {
|
24 | constructor(storage: Storage, id: string, resourceId: string);
|
25 | stop(): Promise<unknown>;
|
26 | stop(callback: StopCallback): void;
|
27 | }
|
28 | /**
|
29 | * Reference to the {@link Channel} class.
|
30 | * @name module:@google-cloud/storage.Channel
|
31 | * @see Channel
|
32 | */
|
33 | export { Channel };
|